jailkit-users
[Top][All Lists]
Advanced

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

[Jailkit-users] jk_lsh auto-disconnecting ssh connection


From: Jiho Kang
Subject: [Jailkit-users] jk_lsh auto-disconnecting ssh connection
Date: Thu, 4 Feb 2010 13:20:50 +0900

Hi, I am running ubuntu 9.04 server with jailkit 2.10.

when I try to ssh login to a chrooted user using SecureCRT 6, jk_lsh disconnects the connection.
this is what /var/log/auth.log says.

Feb  4 13:05:11 cutty sshdfilt[6139]: DB:ACCEPT: user=test, ip=***.***.***.***
Feb  4 13:05:11 cutty sshd: pam_unix(sshd:session): session opened for user test by (uid=0)
Feb  4 13:05:11 cutty jk_chrootsh[14756]: now entering jail /home/chroot2 for user test (1012)
Feb  4 13:05:11 cutty jk_lsh[14756]: jk_lsh version 2.10, started
Feb  4 13:05:11 cutty jk_lsh[14756]: WARNING: user test (1012) tried to get an interactive shell session (/usr/sbin/jk_lsh), which is never allowed by jk_lsh
Feb  4 13:05:11 cutty sshd: pam_unix(sshd:session): session closed for user test

hmm... it seems I "tried to get an interactive shell session" but can't find any relevant data on what that means.
SFTP is working fine and ssh works only when i change the users shell from /usr.sbin/jk_lsh to /bin/bash.

here are some configs.

/etc/passwd
  test:x:1012:1001::/home/chroot/./home/test:/usr/sbin/jk_chrootsh

/home/chroot/etc/passwd
  test:x:1012:1001::/home/test:/usr/sbin/jk_lsh

/home/chroot/etc/jailkit/jk_lsh.ini
  [group jail]
  paths = /usr/bin, /usr/lib, /bin, /usr/sbin
  executables = /usr/bin/ssh, /usr/bin/scp, /usr/lib/sftp-server, /usr/lib/openssh/sftp-server

any hits would be appreciated.
thanks in advance.

reply via email to

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