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.