ssh 登不上了。。才發現

2021-08-25 01:43:48 字數 390 閱讀 2170

netstat -an | grep 8888

發現 ssh 服務的確已經在監聽了。 怎麼我ssh不上去呢。。

奇怪了第乙個懷疑的就是防火牆。。我直接

/etc/init.d/iptables stop

然後就ssh上去了。。

就是因為我重啟了伺服器,所以導致的。難道 iptables 跟隨 系統啟動也啟動了? centos 有這個行為嗎

我 chkconfig --list | more 看了下,的確 iptables 服務在 2345 level 都是on 狀態。。。

因為時候公司內部檔案伺服器,算了暫時不要iptables 。免得麻煩

關掉chkconfig --level 2345 iptables off

就那麼簡單~~

linux開啟ssh服務,實現ssh遠端登入

1.查詢是否安裝ssh.rpm pa grep ssh 2.如果沒有安裝rmp sudo apt get install rmp ubuntu,debian yum y instal rmp centos,redhat 3.安裝ssh sudo apt get install ssh oryum y...

Ubuntu 使用root 帳號開啟 SSH 登入

預設使用ubuntu使用者登入,密碼為伺服器配置時設定的密碼,可在重置密碼中修改 sudo passwd root sudo vi etc ssh sshd config 注釋 authentication logingracetime 120 permitrootlogin prohibit pa...

使用ssh keygen實現SSH無密碼登入

假設 server node001 192.168.189.33 server node002 192.168.189.34 實現 node001和node002 互相免密匙 要點 要是 cd 後ls al 發現沒有.ssh資料夾只需要在本機ssh node001 即可自動生成.ssh資料夾 要對哪...