There is no response from ssh server when a chroot user is logged in.
Issue
- When "ForceCommand internal-sftp" is added to /etc/ssh/sshd_config and user connects to ssh server by using ssh command with the specific user name e.g. test, there is no response from ssh server.
- sshd_config is configured to only allow sftp connection for test user, ssh/scp are disabled. However ssh server does not display an error message when an ssh connection is attempted as test user.
[/etc/ssh/sshd_config]
....
Subsystem sftp internal-sftp -f AUTHPRIV -l INFO
Match User test
ChrootDirectory /test
PasswordAuthentication yes
ForceCommand internal-sftp
....
Environment
- Red Hat Enterprise Linux 6.3
- openssh-5.3p1-81.el6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.