某天發現虛拟機的ssh2 伺服器無法登入了,用抓包工具看,隻發現ssh 伺服器主動發了RST 包;
用systemctl restart sshd 啟動ssh 服務,一切正常;
重裝openssh-server 也無法解決;
但是用secureCRT 就是登入不了,那麼可以嘗試以下方法;
#cd /etc/ssh
#rm ssh_host_*
#systemctl restart sshd
end
不知道為啥,最近老是出現這個問題;
某天發現虛拟機的ssh2 伺服器無法登入了,用抓包工具看,隻發現ssh 伺服器主動發了RST 包;
用systemctl restart sshd 啟動ssh 服務,一切正常;
重裝openssh-server 也無法解決;
但是用secureCRT 就是登入不了,那麼可以嘗試以下方法;
#cd /etc/ssh
#rm ssh_host_*
#systemctl restart sshd
end
不知道為啥,最近老是出現這個問題;