centos ssh认证

vim /etc/ssh/sshd_config

Port 自定义端口号
PermitRootLogin yes 允许root登录
PubkeyAuthentication yes 允许公匙认证
PasswordAuthentication yes 允许密码认证
PermitEnptyPassword no 禁止空密码登录
/etc/init.d/ssh restart  或者 service sshd restart  重启ssh服务
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章