修改sshd_config解決 xshell 連接 linux 錯誤 connection closed by foreign host

用xshell鏈接服務器老是報錯 connection closed by foreign host,害的我一個程序每次都跑到一半shell 解決方案是:    vim sudo vim /etc/ssh/sshd_config 添加兩行: ClientAliveInterval 60 ClientAliveCountMax 3 sudo /etc/init.d/ssh restart
相關文章
相關標籤/搜索