天天看點

Centos下啟動SSH遠端登入

實驗最後如果本地可以ssh,遠端不可以ssh,請關閉iptables。root下執行:/etc/init.d/iptables stop。

開始本次實驗課題,Centos自帶sshd(ssh伺服器端)

<a href="http://img1.51cto.com/attachment/201008/014803263.jpg" target="_blank"></a>

1.啟動sshd(伺服器端操作)

<a href="http://img1.51cto.com/attachment/201008/014859198.jpg" target="_blank"></a>

2.遠端ssh(用戶端操作)

方案一、直接以root登入,不推薦

<a href="http://img1.51cto.com/attachment/201008/015038717.jpg" target="_blank"></a>

方案二、以普通使用者登入,這樣誤操作的風險要低一些~

<a href="http://img1.51cto.com/attachment/201008/015345949.jpg" target="_blank"></a>

本文轉自 bobo5900pro  51CTO部落格,原文連結:http://blog.51cto.com/bobo5900pro/895171,如需轉載請自行聯系原作者

繼續閱讀