歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux編程 >> SHELL編程

Ubuntu 12.04中xshell鏈接報: Connection closed by foreign host.錯誤

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 .

 

Copyright © Linux教程網 All Rights Reserved