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

git clone does not work with lshell #175

Closed hostingnuggets closed 6 years ago

hostingnuggets commented 6 years ago

I have git and ssh in my list of allowed commands but still a git clone does not work with lshell. Here is the ouput:

git clone git@github.com:jimsalterjrs/sanoid.git
Cloning into 'sanoid'...
fatal: cannot exec 'ssh': Permission denied
fatal: unable to fork
ghantoos commented 6 years ago

Hi,

You should add git to the allowed_shell_escape setting in the configuration file.

allowed_shell_escape : ['git']

I was just able to successfully clone the lshell repo: image

hostingnuggets commented 6 years ago

Thanks for the tip, that works!