1,sshd服務安裝
yum install openssh-server
2,[root@localhost /]# vi /etc/ssh/sshd_config
Port 22
Protocol 2
PermitRootLogin yes
去掉這三行的注釋
最后一個重要!因為它是允許root用戶直接使用sshd服務登錄服務器的!
3,重新啟動sshd服務
[root@localhost /]# service sshd restart
4,設置sshd為系統自動啟動
[root@localhost /]# chkconfig --level 35 sshd on
5,使用客戶端連接即可!