jailkit-users
[Top][All Lists]
Advanced

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

[Jailkit-users] Problem with ssh connection on a jailed username


From: OCEANET - Cédric BASSAGET
Subject: [Jailkit-users] Problem with ssh connection on a jailed username
Date: Tue, 11 Feb 2014 13:56:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hello,

I'm trying to jail an user on a centos 6.5 distro.

I've followed the example section of this page : http://olivier.sessink.nl/jailkit/jailkit.8.html

When I try to connect with that user (githplus) to my system (gan-w17), I just get the welcome message then a "Connection to <server> closed."

Looking into the logs of my server :

/var/log/secure :
Feb 11 13:52:40 gan-w17 sshd[13623]: Accepted keyboard-interactive/pam for githplus from <myIP> port 45858 ssh2
Feb 11 13:52:40 gan-w17 sshd[13623]: pam_unix(sshd:session): session opened for user githplus by (uid=0)
Feb 11 13:52:40 gan-w17 sshd[13628]: Received disconnect from <myIP>: 11: disconnected by user
Feb 11 13:52:40 gan-w17 sshd[13623]: pam_unix(sshd:session): session closed for user githplus

/var/log/messages :
Feb 11 13:52:40 gan-w17 jk_chrootsh[13629]: now entering jail /srv/gan-w17-disk1/githplus for user githplus (911) with arguments

In /etc/passwd I have :
githplus:x:911:911::/srv/gan-w17-disk1/githplus/./home/githplus:/usr/sbin/jk_chrootsh

I can't find why it does not work.
Can anybody help me please ?

Regards,
Cédric

reply via email to

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