ssh remote connectivity issues for some time will fail

Man of few words say, to explain my environment and remote environments.

  • Local environment: Ubuntu18.04 (client)
  • Remote Environment: Ubuntu16.04 (server)

I have a small project deployed on Baidu cloud Ubuntu server, requires frequent use ssh from the local remote, disconnected the case of (specific performance is, after you connect, but how long will automatically disconnect the unresponsive) has recently appeared, then I find information get a solution, and now write for those who need to solve together.

In the local client-side operations:

1. Go / etc / ssh / in: cd / etc / ssh /

2. Modify the ssh_config file (sudo vim ssh_config), at the end add ServerAliveInterval 30, it means that the 30s will send a request to a server connected to keep the conversation always online.

3. Save Exit (: wq)

[Ps: Windows needs to pay attention to, to find the config configuration file in the installation path ssh]

Guess you like

Origin www.cnblogs.com/cpl9412290130/p/11114546.html