Allowing GIT in JailKit on ISPConfig
I have several Debian based webservers which use ISPConfig. ISPConfig has a very nice feature which allows clients to log in with SSH using JailKit. They get a jail with basic linux commands and access to their full web-environment (and private directories). I’ve had one specific client that needed to pull code from git repo’s. Though git was available on the jail host the jail itself didn’t have access. It’s fairly simple to get the jail to use git;
Add GIT binaries;
1 |
jk_cp -v -j /home/jail/ /usr/bin/git* |
1 |
jk_cp -j /home/jail/ /usr/lib/git-core/* |
1 |
jk_cp -j /home/jail/ /usr/bin/ssh-keygen |
1 |
jk_cp -j /home/jail/ /bin/uname |
Thanks. Exactly what I was looking for.
We can add also
jk_cp -j /home/jail/ /usr/share/git-core
because of
warning: templates not found /usr/share/git-core/templates
But it is really not required.
if you miss libexec/git-core you will not have git pull or anything useful.
jk_cp -v -j /home/jail /usr/libexec/git-core/
is your friend :)