CentOS无法用第三方工具连接22端口解决方法

2025-05-15 23:40:31

1、一. 确保端口开放cd到根目录/下执行/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT

CentOS无法用第三方工具连接22端口解决方法

3、或修改文件vi /etc/sysconfig/iptables添加-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

CentOS无法用第三方工具连接22端口解决方法

4、再执行保存和重启命令service iptables saveservice iptables restart

CentOS无法用第三方工具连接22端口解决方法CentOS无法用第三方工具连接22端口解决方法

8、查看TCP 22端口是否打开netstat -ntpl | grep 22

CentOS无法用第三方工具连接22端口解决方法CentOS无法用第三方工具连接22端口解决方法CentOS无法用第三方工具连接22端口解决方法CentOS无法用第三方工具连接22端口解决方法CentOS无法用第三方工具连接22端口解决方法

13、我们来添加一下端口映射

CentOS无法用第三方工具连接22端口解决方法CentOS无法用第三方工具连接22端口解决方法CentOS无法用第三方工具连接22端口解决方法

15、经过1天的奋战, 找出了是因为用ssh登录, 需要用本机的ip进行登录

CentOS无法用第三方工具连接22端口解决方法CentOS无法用第三方工具连接22端口解决方法CentOS无法用第三方工具连接22端口解决方法
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢