When configuring a Match group or Match user for ChrootDirectory, trailing white space on Forced Command results in "Connection closed". Match group download ChrootDirectory /common/chroot ForceCommand internal-sftp ^ extra space here trace ... debug1: subsystem: exec() internal-sftp debug1: Forced command (config) 'internal-sftp ' output ... bburnell@bcodev # sftp sftpadmin@bldr-ccm44 Connecting to bldr-ccm44... sftpadmin@bldr-ccm44's password: Connection closed Match group download ChrootDirectory /common/chroot ForceCommand internal-sftp ^ no extra space here debug1: subsystem: exec() internal-sftp debug1: Forced command (config) 'internal-sftp' bburnell@bcodev # sftp sftpadmin@bldr-ccm44 Connecting to bldr-ccm44... sftpadmin@bldr-ccm44's password: sftp> Connection to bldr-ccm44 closed by remote host.
I think that this is fixed in 5.2p1 - could you test this version?
Closing due to inactivity. This is probably fixed. If not then please reopen.
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1