ghantoos / lshell

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.
GNU General Public License v3.0
434 stars 113 forks source link

I cant limit scp upload. #185

Closed niyang110 closed 6 years ago

niyang110 commented 6 years ago

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