Network error: software caused connection abort solution, causedabort
Yesterday, I opened a new VPS and was forced to terminate it when I installed lnmp repeatedly due to an error message. I also found many methods, one of them is to add a value in the sshd_config file: TCPKeepAlive yes. I have never tried this. Another method I use is to modify this file!
Step 1: Enter the SSH command vi/etc/ssh/sshd_config and press Enter.
Step 2: press the key until the last line is found. You will see a sentence about the last 20th rows: ClientAliveInterval 0
Step 3: change the number 0 to 60
Step 4: Press esc, press ctrl + Q, enter wq, and press enter to save it!
Step 5: service sshd restart the service
The above method is provided by the VPS vendor, but I think the most important thing is that the ping value of this VPS is a bit high!
Solution 1:
1. Set "Sending of null packets to keep session active" in the Connection project of putty, that is, send a null packet every several seconds so that the session will not be timeout
2. Set/etc/ssh/sshd_config in sshd host: TCPKeepAlive yes
Solution 2:
Modify/etc/ssh/sshd on the server. in the config file, set the value of LoginGraceTime to 0. The default value is 2 m, and TCPKeepAlive is set to yes. Then, use service sshd restart to restart the sshd service.
Supplement:
In sshd_config, there is a LoginGraceTime variable. The parameter value is second, indicating how many seconds will the chain be automatically broken when the user logs on via ssh but does not enter the password.
This variable works normally in both x86 and S9 s10, but it does not work in the S10.
Although the specified time is reached, the system/var/adm/messages will print sshd [3968]: [ID 800047 auth. crit] monitor fatal: Timeout before authentication for 135.252.106.61
In fact, the link is not broken. The link is still automatically broken only after the user enters the password and must be entered correctly.
Solution 3:
Step 1: Enter the SSH command vi/etc/ssh/sshd_config and press Enter.
Step 2: press the key until the last line is found. You will see a sentence about the last 20th rows: ClientAliveInterval 0
Step 3: change the number 0 to 60
Step 4: Press esc, press ctrl + Q, enter wq, and press enter to save it!