Network Error:software caused connection abort solution

Source: Internet
Author: User
Tags vps

Yesterday, opened a new VPS, repeatedly installed LNMP because of a false hint and forced to terminate, and I also found a lot of methods, one is to add sshd_config this file inside a value: tcpkeepalive yes, I didn't try this, I use another method, the same is to modify this file!

First step: SSH command input: Vi/etc/ssh/sshd_config then enter

The second step: press the key, always find the last here, you will see the bottom 20th line around there is such a sentence: Clientaliveinterval 0

Step three: Modify the number 0 to 60

Fourth step: Press ESC, press CTRL+Q, enter Wq, return to save!

Fifth Step: Service sshd restart Restart services

The above way is the VPS supplier to me, but I think the most important thing is the ping of this VPS is a bit high!



Programme one:

1. In putty Connection project, set "sending of NULL packets to keep session active", that is, every few seconds to send an n ULL packet let session not timeout

2./etc/ssh/sshd_config setting in sshd Host: tcpkeepalive Yes


Scenario Two:

Modify the/etc/ssh/sshd.config file on the server, set the value of Logingracetime to 0, default to 2m,tcpkeepalive set to Yes, and then use the service sshd restart to restart the sshd service. That's all you can do.

Add:

in Sshd_config, there is a logingracetime variable, the value of the parameter is the second, indicating that the user SSH login, but did not enter the password, how many seconds after the automatic broken chain.
This variable works fine under the x86 and S9 of S10. But in S10 's SPARC model, it doesn't work.
Although at the specified time, the system/var/adm/messages will print sshd[3968]: [ID 800047 Auth.crit] Monitor fatal:timeout before authentication for 135.252.106.61
But in fact it does not break the chain, is still waiting for the user to enter the password. and must be entered correctly before automatically broken chain.


Programme III:

First step: SSH command input: Vi/etc/ssh/sshd_config then enter

The second step: press the key, always find the last here, you will see the bottom 20th line around there is such a sentence: Clientaliveinterval 0

Step three: Modify the number 0 to 60

Fourth step: Press ESC, press CTRL+Q, enter Wq, return to save!


Network Error:software caused connection abort solution

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.