CentOS下安裝、配置SSH

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章