Hi folks,
I heroically managed to set up a chroot environment under openssh V4.7 and it was even working perfectly
However: After using smit to upgrade the openssh packages to Version 5.0 the chroot environment broke apart and the chrooted user was able to cd .. to the whole machine.
So far I was able to find out about the new "ChrootDirectory" sshd_config parameter and updated the file accordingly ...
Since that the openssh started to refuse my ssh-key.
Strange, because we didn't change anything on the system. The only thing we did was upgrade V4.7 to V5.0
After doing a lot of googling I got the hint, that there might be something wrong with the file AND directory permissions for the authorized_keys file and all the directories above that, but it didn't become clear in what way the permissions might have to be changed. Anything I tried so far didn't solve the problem.
Here are the sshd debug messages I got so far:
Note: /usr/edi/ is the chrooted directory !
Permissions are:
Any ideas what's wrong here ?
Regards
Thomas
I heroically managed to set up a chroot environment under openssh V4.7 and it was even working perfectly
However: After using smit to upgrade the openssh packages to Version 5.0 the chroot environment broke apart and the chrooted user was able to cd .. to the whole machine.
So far I was able to find out about the new "ChrootDirectory" sshd_config parameter and updated the file accordingly ...
Since that the openssh started to refuse my ssh-key.
Strange, because we didn't change anything on the system. The only thing we did was upgrade V4.7 to V5.0
After doing a lot of googling I got the hint, that there might be something wrong with the file AND directory permissions for the authorized_keys file and all the directories above that, but it didn't become clear in what way the permissions might have to be changed. Anything I tried so far didn't solve the problem.
Here are the sshd debug messages I got so far:
Code:
debug1: trying public RSA key file /usr/edi/.//.ssh/authorized_keys
debug1: restore_uid: 0/0
debug3: mm_request_send entering: type 32
Failed rsa for axway from 172.16.17.13 port 4199
debug1: audit event euid 0 user axway event 6 (SSH_failpubkey)
Note: /usr/edi/ is the chrooted directory !
Permissions are:
Code:
-rw------- 1 chrootuser staff 1726 Feb 09 15:41 authorized_keys
drwx------ 2 chrootuser staff 256 Feb 09 15:52 .ssh
drwxr-xr-x 12 root staff 8192 Nov 18 16:26 edi
Any ideas what's wrong here ?
Regards
Thomas