This topic created in 947 days ago, the information mentioned may be changed or developed.
本地虚拟机,防火墙关了,能 ping 通,可以使用 telnet 连接( 22 端口),但是使用其它端口的话,全部都是提示连接失败,比如 telnet 192.168.2.2 445 ,提示“正在连接 192.168.2.18...无法打开到主机的连接。 在端口 445: 连接失败” 这是什么原因?虚拟机是 centos7
3 replies • 2023-10-19 18:24:04 +08:00
 |
|
1
cctv6 Oct 18, 2023 1
不通的时候,先 ss -tunlp 看看端口有没有被监听,如果有,在服务器上测试一下通不通,如果服务器上测试能通,那么就检查一下防火墙。
|
 |
|
2
baihekong Oct 18, 2023
关闭 selinux 。CentOS 7 和 8 都停止维护了,换 Debian 吧
|
 |
|
3
coderzhangsan Oct 19, 2023
centos7 系统,防火墙关了,大概率是 selinux 了,楼上兄弟给了提示,楼主试下。
|