internal-sftp only without ssh and scp hanging

Paul Surgeon surgpm at gmail.com
Fri Oct 23 23:55:05 EST 2009


I've configured OpenSSH_5.3p1 to only allow sftp connections (openssh
chroot functionality).

i.e.
Subsystem       sftp    internal-sftp
Match group sftpusers
         ChrootDirectory /chroot/%u
         X11Forwarding no
         AllowTcpForwarding no
         ForceCommand internal-sftp

So far everything works correctly with sftp but when a user ssh's or
scp's to the box the login hangs after authentication.
Is there anyway to get sshd to close the connection instead of just hanging?

My question is the same as this post which was never answered:
http://marc.info/?l=openssh-unix-dev&m=124492525712723&w=2

Thanks


More information about the openssh-unix-dev mailing list