Today development colleague response, we have a test server can not connect.
Phenomenon: Login can enter the user name, when entering the password to enter, Flash
Resolution process:
Ping this server's IP to ping the
Login to the vsphere Server console, because the password is more complex at the time, so into the single-user mode modified a simple to log in to view the error log
View sshd service, which is running status
View listening Port 22 on the monitor
View firewall, shutdown status
After that, still can't log in, this let me very confused
And then Google, for a long time, didn't find the answer.
Finally see the Xshell login interface error:/bin/bash:no such file or directory
How could you not find bash? By
Then, continue to search the online answer, finally found a parameter in the sshd_config inside: chrootdirectory/opt/sftp/%u
Feel the chance to comment out decisively. But still can't login, but the error changed: Bash:internal-sftp:command not found
。 It was strange at the time, what was the sftp? have never seen, but in the sshd_config inside has this parameter, decisively commented out:
Subsystem sftp internal-sftp
Forcecommand internal-sftp
9. Finally solve the problem, it should be the server is configured with the SFTP service caused by
This article is from the "Little v Yun Road" blog, make sure to keep this source http://victor2016.blog.51cto.com/6768693/1896577
One Xshell login Server Flash Experience