Remote SSHD Hint: Server unexpectedly closed network connection

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.