解决 SSH Connection closed by foreign host 问题


Xshell 报错 :

1.有可能是IP和别人冲突,改一下IP就好了

2.也有可能是文件权限的问题。改一下:

 cd /etc/ssh/
 chmod 600 ssh_host_*
 chmod 644 *.pub

3、也有可能是防火墙的问题

/etc/init.d/iptables status    //先看一下防火墙状态
chkconfig iptables off       //关闭的命令

或者:

#停止firewall
systemctl stop firewalld.service

#禁止firewall开机启动
systemctl disable firewalld.service

 

 

解决 SSH Connection closed by foreign host 问题

https://blog.csdn.net/tojohnonly/article/details/79746588

 https://blog.csdn.net/weixin_41585557/article/details/83895338

 

Connection closed by foreign host原因ip冲突及解决办法

https://blog.csdn.net/qq_37755661/article/details/79152832

 

也可能是这个问题

https://blog.51cto.com/huazhixu123/1971465


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM