解決思路如下:
1、查看防火墻是否關(guān)閉
service iptables status
可通過下面命令臨時關(guān)閉防火墻,也可以永久關(guān)閉防火墻。
/etc/init.d/iptables stop service iptables stop chkconfig iptables off #(永久關(guān)閉)
(推薦教程:centos使用教程)
2、查看是否安裝sshd
rpm -qa |grep sshd
查看是否運(yùn)行
如果未安裝sshd,使用如下命令進(jìn)行安裝即可。
yum install openssh-server
相關(guān)視頻教程推薦:linux視頻教程