root 登錄
su
檢查 ssh是否安裝
rpm -qa | grep ssh
SSH服務是否正在運行
/etc/init.d/sshd status
啓動ssh
service sshd start
查看是否啓動22端口
netstat -antp | grep sshd
檢查sshd是否在本運行級別下設置爲開機啓動
chkconfig --list sshd
設置本級別
chkconfig --level 2345 sshd on
設置SSH服務爲開機啓動
chkconfig sshd on
配置參數
vim /etc/ssh/sshd_config