使用 ssh 登录到云主机上,一段时间没有操做终端,会发现 ssh 链接断了,终端无响应。ssh
配置 ssh 客户端,使其以必定间隔时间向 sshd 服务端发送心跳包,可解决此问题。code
/etc/ssh/ssh_configblog
ServerAliveInterval 60
配置