Ubuntu 12.04中xshell鏈接報:Read from socket failed: Connection reset by peer 或者 Connection closed by foreign host.錯誤解決辦法:
該問題出現的原因是/etc/ssh目錄下的文件的熟悉被修改了,從新修改回原始狀態即可:
cd /etc/ssh
sudo chmod 644 ./*
sudo chmod 600 ssh_host_dsa_key
sudo chmod 600 ssh_host_rsa_key
sudo chmod 755 .