1.服务器端
排查网络配置是否正常和网卡是否开启
通过以下命令查询
ifconfig
检查端口和进程是否正确
查端口
ss -lntup | netstat -lntup
查进程
ps -ef | grep ssh
查询sshd服务是否启动
systemctl status sshd
如果未开启,则打开服务
systemctl start sshd
2.客户端
1.再开启一台虚拟机,尝试去ping 通
如果ping 不通说明物理链路有问题
2.telnet IP 端口 测试服务是否启动
telnet 192.168.247.144 22 //这里的IP和端口是你想测试的
如果端口号没有问题那么只剩下防火墙
3.防火墙
查看防火墙状态
systemctl status firewalld
开启防火墙
systemctl start firewalld
停止防火墙
systemctl stop firewalld
开机禁用防火墙
systemctl disable firewalld
开机启用防火墙
systemctl enable firewalld