centos 6.9无法远程连接

centos 无法远程连接解决方案:

1、查看防火墙是否关闭

  service iptables status 

可通过下面命令临时关闭防火墙,也可以永久关闭防火墙

 /etc/init.d/iptables stop 

service iptables stop 

chkconfig iptables off (永久关闭)

2、查看是否安装sshd 

rpm -qa |grep sshd

查看是否运行:

 

 如果未安装sshd 使用yum install openssh-server 安装

3、解决以上问题,便可远程连接

posted @ 2022-12-26 17:41  Flyoung  阅读(259)  评论(0编辑  收藏  举报