CentOS-6.9 开启SSH远程连接

xiaoxiao2021-02-28  98

1.检查SSH是否安装

rpm -qa |grep ssh

2.查看SSH是否启动

/etc/init.d/ssh status

3.查看SSH是否设置为开机启动

chkconfig –list sshd

4.设置SSH开机启动

chkconfig –level 2345 sshd on

5.启动SSH

service sshd start

6.查看是否开启22端口

iptables -nL

7.如果没有开启,配置防火墙

转载请注明原文地址: https://www.6miu.com/read-64353.html

最新回复(0)