使用 ssh 登錄到雲主機上,一段時間沒有操做終端,會發現 ssh 鏈接斷了,終端無響應。ssh
配置 ssh 客戶端,使其以必定間隔時間向 sshd 服務端發送心跳包,可解決此問題。code
/etc/ssh/ssh_configblog
ServerAliveInterval 60
配置