ssh failed sometimes after connection established: server unexpectedly closed network connection

在使用 ssh 登入 Linux 時,卻發生了 server unexpectedly closed network connection 的狀況。
查詢得到了解決方法,還沒驗證,先記錄備忘一下。
1. 修改 /etc/ssh/sshd_config
將 UseDNS yes 改成 UseDNS no
2. 重啟 ssh 服務
# /etc/init.d/sshd restart

转载于:https://www.cnblogs.com/ericsun/archive/2012/10/12/2721152.html

猜你喜欢

转载自blog.csdn.net/weixin_34043301/article/details/93154945