lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
I cant limit scp upload.
How to make it work?
when I try to run the scp command,i got an error:
ltest:~$ scp test.sh root@10.58.124.52:/root/
/usr/bin/ssh: Permission denied
lost connection
I cant limit scp upload. How to make it work? when I try to run the scp command,i got an error: ltest:~$ scp test.sh root@10.58.124.52:/root/ /usr/bin/ssh: Permission denied lost connection
[ltest] allowed : 'all' allowed_shell_escape : ['bash','sh'] path : ['/var', '/usr'] - ['/usr/local'] env_path : ':/bin:/sbin:/usr/bin' home_path : '/home/ltest' aliases : {'ll':'ls -l','ls':'ls --color'} forbidden : ['<'] overssh : ['ls'] scp : 1 scp_upload : 0 scp_download : 1