That was it! I had actually edited
the file properly at /etc/jailkit/jk_lsh.ini instead of /jail/etc/jailkit/jk_lsh.ini.
As soon as I added the appropriate entries to the file in
/jail/etc/jailkit everything began working well.
Thanks for your assistance!
Bob
Bob Dushok
Director of Enterprise Systems and Computer Labs
Luzerne County Community College
1-800-377-5222 ext 7327
address@hidden
From:
Richard Scott <address@hidden>
To:
<address@hidden>,
Date:
03/26/2013 09:33 AM
Subject:
Re: [Jailkit-users]
Can't login - Connection dropped
Sent by:
address@hidden
Hi,
I think you are running a restricted chrooted shell
which limits what files can be executed.
Try editing /etc/jailkit/jk_lsh.ini to enable access
to the required binaries or try chaging the shell in /jail/etc/passwd to
be bash rather than jk_lsh.
Rich
On 26/03/2013 01:13 PM, address@hidden wrote: I'm attempting to use Jailkit on Suse Enterprise 11
R2 unsuccessfully. I've created a jail at /jail and a user named
test within the group uploaders. This user should only have access
to sftp.
I've done the following: 1) Edited jk_init.ini. I've changed the paths
assignment within the [sftp] section to include /usr/lib64/ssh/sftp-server.
2) jk_init -v -j /jail sftp scp 3) jk_init -v -j /jail jk_lsh 4) jk_jailuser -v -j /jail test
When I attempt to sftp using the user test the connection
is dropped immediately after login. The following appears in the
logs: Mar 26 08:46:57 files sshd[10679]: Accepted keyboard-interactive/pam
for test from 10.1.1.10 port 63647 ssh2 Mar 26 08:46:57 files sshd[10686]: subsystem request
for sftp Mar 26 08:46:57 files jk_chrootsh[10687]: now entering
jail /jail for user test (1001) with arguments -c /usr/lib64/ssh/sftp-server
Mar 26 08:46:57 files sshd[10686]: Received disconnect
from 10.1.1.10: 11: disconnected by user
The data for this user in /etc/passwd and /jail/etc/passwd
looks fine.