putty连接centos7 Network error:connection timed out

首先说明一下,centos7系统下的开机服务不再在/etc/inittab的管理之下了,centos7使用systemd模块管理系统的服务,

所有的服务文件都改为/etc/systemd/system的.service文件或者/usr/lib/systemd的.service文件。对应的启动方式改为了systemctl oprator service例如systemctl status firewalld查看防火墙状态

ceontos7的systemd服务管理工具的具体用法,参考资料:

https://www.cnblogs.com/ops-sylar/p/8331781.html

      putty连接错误排查步骤:

                 查看22端口:netstat -anop|grep 22

22端口出于监听状态,监听服务为sshd,这没问题,注意:最小版安装centos7是没有net-tools,需要先安装net-tools

net-tools安装步骤:

https://blog.csdn.net/e10million/article/details/85092485

扫描二维码关注公众号,回复: 4616494 查看本文章

接着禁掉防火墙:

     systemctl stop firewalld

大部分的问题到这一步就解决了,但是很不幸,依旧timed out

继续排除问题

查看sshd是否运行

systemctl status sshd

ok这些都没有问题那么只剩下网络不识别的问题了,网络不识别只有一种情况,就是两个ip不在同一个“”网络里“

参考资料:https://www.cnblogs.com/summer-fate/p/7704070.html

               鄙人是使用桥接模式设置网络适配器的,刚开始还好好的隔天就不能远程连接了,实在是一脸懵逼,后来重新设置一番又没问题了,更是一脸懵逼

             刚刚查了一下说是跃点数的问题

参考资料:https://blog.csdn.net/chenlycly/article/details/52142999

                             

猜你喜欢

转载自blog.csdn.net/e10million/article/details/85091464