[Chrootssh-users] SFTP/SCP and chroot (fwd)
Brought to you by:
punkball
From: Aaron L. <al...@na...> - 2003-05-27 22:29:39
|
Greets everyone- I have a redhat 9 chroot'ed box all set up and running with one issue. SFTP and SCP both hang at the password prompt. SSH runs perfectly, and with a hosts file in the chroot, I can ssh/scp/sftp anywhere. However when I SFTP or SCP to the box, I get prompted for my password, it appears to accept it, and then hangs. I have checked the ssh and sftp-server binary against ldd to be sure I have all the libraries I need, and I can't figure out what I'm missing. I've also run strace on the server, as well as run sshd with -d -d -d and everything looks as can be expected. This is the output from sftp -v -v -v (starting at the password prompt, until the point it hangs): user@host's password: debug3: packet_send2: adding 48 (len 61 padlen 19 extra_pad 64) debug2: we sent a password packet, wait for reply debug1: ssh-userauth2 successful: method password debug1: fd 4 setting O_NONBLOCK debug2: fd 5 is O_NONBLOCK debug1: channel 0: new [client-session] debug3: ssh_session2_open: channel_new: 0 debug1: send channel open 0 debug1: Entering interactive session. debug2: callback start debug1: ssh_session2_setup: id 0 debug1: Sending subsystem: sftp debug1: channel request 0: subsystem debug2: callback done debug1: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel 0: rcvd adjust 131072 # It hangs at that point. # When I sftp as root, which is not chrooted, it gets the next 3 lines # and then the sftp prompt debug2: Remote version: 3 debug3: Sent message fd 3 T:16 I:1 debug3: SSH_FXP_REALPATH . -> /root sftp> I can send more debugging output from the server side, although it doesn't appear to be all that useful. It looks exactly the same as a non-chroot'ed user, except the chroot'ed users connection hangs at the passwd prompt. /var/log/messages say the user has logged in successfully and ps shows that the sftp process is running. I'm totally stuck. Any suggestions or information would be *greatly* appreciated. -=Aaron |