本人环境:Window10 \ VM15.5.2 \ Centos7
1、检查防火墙是否关闭;
2、检查和本机是否是同一网段。
1、防火墙检查 关闭
1.1:查看防火墙状态》》systemctl status firewalld
1.2:开启防火墙状态 》》systemctl start firewalld
1.3:关闭防火墙状态 》》systemctl stop firewalld
1.3.1:禁用防火墙,下次开机启动后防火墙服务不再启动》》systemctl disable firewalld
防火墙关闭状态,如下图,说明关闭:

2、检查和本机是否是同一网段
2.1:虚拟机需 NAT 模式

2.2:虚拟机 Linux IP查:ip addr

2.3:本机IP cmd>>ipconfig

本文介绍如何在CentOS7中配置SSH服务及基本的网络问题排查方法,包括防火墙状态检查、确保主机在同一网段、Ping测试等步骤。
最低0.47元/天 解锁文章
2937

被折叠的 条评论
为什么被折叠?



