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