[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Jailkit-users] Cannot scp with git-shell user in jailkit v2.14
From: |
Tom Handy |
Subject: |
[Jailkit-users] Cannot scp with git-shell user in jailkit v2.14 |
Date: |
Tue, 14 Jun 2011 15:16:01 +0200 |
Hi,
I have jailkit-2.14 installed on an ubuntu 10.04 LTS server
I have a git repos set up on it and have jailed a git user set up as follows
cat /etc/passwd
<USERNAME>:x:1002:1001:,,,:/home/jail/./home/<USERNAME>:/usr/sbin/jk_chrootsh
cat /home/jailgit/etc/passwd
<USERNAME>:x:1002:1001:,,,:/home/<USERNAME>:/usr/bin/git-shell
I cannot ssh into the server as expected but when when I try to scp a file to
the git repos it fails with this error.
fatal: unrecognized command 'scp -t .'
When I change the user to this shell it works but now they can also ssh into
the server which I don't want.
cat /home/jailgit/etc/passwd
<USERNAME2>:x:1002:1001:,,,:/home/<USERNAME2>:/bin/bash
Any ideas?
Best regards,
Tom Handy
Software Engineer
- [Jailkit-users] Cannot scp with git-shell user in jailkit v2.14,
Tom Handy <=