You are not logged in.

#1 2007-10-15 23:44:54

acura
Member
Registered: 2007-07-08
Posts: 21

Openssh-chroot 4.5p1-1 can't login.

Hi,
I've had problems with openssh-chroot for a while now. The problem is that as soon as some one logs on to be chrooted the connection closes. I've found out that the problem has somthing to do with the chroot operation with openssh because chroot /chroot/ /bin/bash works just fine and if I change chuser:x:1004:1005::/chroot/./home/chuser:/bin/bash to chuser:x:1004:1005::/chroot/home/chuser:/bin/bash it's okay to login.

I've had it up and running earlier and I've tried to rebuild chroot environment. Have some one else had this problem and know a fix?

Regards

Offline

#2 2007-10-17 01:03:07

acura
Member
Registered: 2007-07-08
Posts: 21

Re: Openssh-chroot 4.5p1-1 can't login.

I found a solution. Don't really know it's a good solution but. Renaming /etc/pam.d/sshd{,.pam} solved the problem.

Offline

#3 2008-03-11 05:55:54

jimmyeatapple
Member
Registered: 2008-03-11
Posts: 8

Re: Openssh-chroot 4.5p1-1 can't login.

Thank you acura and buon. That solution works for me as well as far as ssh goes. SFTP is another matter entirely. I am still getting a 'Request for subsystem 'sftp' failed on channel 0'. I am going to keep looking around the forums before posting a question, but if either of you have any insights I will be checking back here periodically.

Offline

Board footer

Powered by FluxBB