Remote SSHD Hint: Server unexpectedly closed network connection
After restarting the server effect is the same, after a period of time to connect, finally connected to the remote. After you create a new remote connection, you find the prompt:
Server unexpectedly closed network connection
Baidu and Google search for a while, modified after sshd_config, the effect is the same.
Then look at the
[[email protected] log]# tail-f/var/log/secure//view Log in log file
Found the problem, a lot of IP has been violent crack, login information has been brushing the screen
[[email protected] log]# vim/etc/ssh/sshd_config//modify port to 3330
[[email protected] log]# iptables-i input-p TCP--dport 3330-j ACCEPT//Add firewall 3330 port allow
[[Email protected] log]# service Iptables save//Save rule
[[email protected] log]#/etc/init.d/sshd Restart//restart SSHD
[[email protected] log]# tail-f/var/log/secure//re-view log no login log and then swipe the screen.
In Telnet, normal.
It's important to look at the logs. Very important.
Remote SSHD Hint: Server unexpectedly closed network connection