1. 程式人生 > >Xshell連線失敗

Xshell連線失敗

Could not connect to '192.168.73.136' (port 22): Connection failed.

方法:

1. 防火牆:

解決方案:

(1)檢視防火牆:service iptables status

(2)先關閉防火牆:/etc/init.d/iptables stop

(3)開啟防火牆: service iptables start

2.安裝ssh-server 伺服器 :

     yum install openssh-server

然後開啟ssh服務

 

開啟ssh服務:service sshd start

關閉ssh服務:service sshd stop

重啟ssh服務:servcie sshd restart