Hi Oliver,
Here is the logs, please could you help me to make it work your program ?
May 11 22:29:57 localhost sshd[523]: (pam_unix) authentication failure;
logname= uid=0 euid=0 tty=ssh ruser= rhost=debian02 user=usernameid
May 11 22:29:59 localhost sshd[523]: Failed password for usernameid from
debian02 port 37405 ssh2
May 11 22:30:11 localhost sshd[536]: Accepted password for usernameid
from debian02 port 37407 ssh2
May 11 22:30:11 localhost sshd[542]: (pam_unix) session opened for user
usernameid by (uid=0)
May 11 22:30:14 localhost jk_chrootsh[557]: now entering jail
/home/chrootusers for user usernameid (XXXX)
May 11 22:30:14 localhost jk_lsh[557]: WARNING: user usernameid (XXXX)
tried to get an interactive shell session (/usr/sbin/jk_lsh), which is
never allowed by jk_lsh