ssh连接The remote system refused the connection故障处理

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssh连接The remote system refused the connection故障处理相关的知识,希望对你有一定的参考价值。

安装在VMware workstation上的centos6.8有3个月没启动过了,国庆前决定用一下,却发现连不上网。

研究了一下,发现eth0变成了eth3,虽然觉得这个变化无伤大雅,但还是按照上一篇文章的办法修改网卡设备文件名,还是不行。重启网络服务,重启系统,问题还是没有解决。开始怀疑vmware workstation,升级到12.5,问题依旧。检查vmware网络配置,没看出所以然,于是冒着影响其它虚拟机网络配置的风险,用vmware虚拟网络编辑器还原vmware网络缺省配置,才发现负责桥接模式的VMnet0被干掉了。TMD谁干的!真想拿菜刀劈了它!

至此,虚机可以联网了(通过桥接模式)。但是从windows主机通过ssh连接虚机,报错:“The remote system refused the connection.”。重启sshd和nework服务都无效,修改sshd配置也不行,关闭防火墙iptable还不行。没招了,怀疑winsows防火墙作祟,可是急切间又没找到如何关闭它。于是又新装一个centos虚拟机,准备做对比,装好后发现windows主机也不能通过ssh连接它。开始怀疑centos的openssh模块,用yum升级它,无效。在yum升级过程中发现系统很多模块都有升级包,于是随手把两个centos虚拟机都升级了。重启后,ssh连接正常,问题解决了!

看来定期升级软件还是很重要的。


本文出自 “稀里哗啦的瞎说” 博客,请务必保留此出处http://leesbing.blog.51cto.com/1344594/1858791

以上是关于ssh连接The remote system refused the connection故障处理的主要内容,如果未能解决你的问题,请参考以下文章

关于The remote system refused the connection.的问题解决

我的secureCRT连接一个linux ubuntu主机显示the remote system refused the connection

解决 Xshell 连接出现 The remote SSH server rejected X11 forwarding request 问题

WARNING! The remote SSH server rejected X11 forwarding

secureCRT The remote system refused the connection问题解决

Windows上使用SecureCRT软件连接Linux终端 — 解决问题;The remote system refused the connection