jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] Cannot scp with git-shell user in jailkit v2.14


From: Olivier Sessink
Subject: Re: [Jailkit-users] Cannot scp with git-shell user in jailkit v2.14
Date: Fri, 24 Jun 2011 17:42:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10

On 06/14/2011 03:16 PM, Tom Handy wrote:
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 .'

if you use git-shell without a jail, does scp work?

I have no experience with git, but perhaps you can use jk_lsh to allow both git and scp like the examples with cvs?

Olivier



reply via email to

[Prev in Thread] Current Thread [Next in Thread]