OpenSuSe開啟sshd服務

來源:互聯網
上載者:User

標籤:class   blog   tar   ext   檔案   art   

安裝好OpenSuSE 11後,發現ssh串連不上去,可以ping通,telnet不行。查看服務後,發現ssh服務沒有開啟。開啟步驟:
1.修改sshd_config檔案。
將#PasswordAuthentication no的注釋去掉,並將no改為yes 

3、將#PermitRootLogin yes的注釋掉

4、重新啟動SSH服務:/etc/init.d/sshd restart 

5、驗證SSH服務狀態:/etc/init.d/sshd status.
 

探索服務已經啟動,但是仍然串連不上去。可能是防火牆,關掉防火牆,service iptables stop.發現沒有改服務。原來suse的防火牆不是iptables,是他系統內建的一個防火牆工具。並且suse預設的防火牆設定為拒絕所有。修改防火牆,開啟sshd連接埠

1.修改設定檔/etc/sysconfig/SuSEfirewall2

2.開發連接埠:
#TCP連接埠的情況:
FW_SERVICES_EXT_TCP = "22"
#UDP連接埠的情況:
FW_SERVICES_EXT_UDP = "23"
重啟防火牆生效:rcSuSEfirewall2 restart

重新串連ssh,發現串連成功。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.