`

linux ssh2

    博客分类:
  • OS
 
阅读更多

 

 /etc/hosts.allow 和 /etc/hosts.deny

 

#cat /etc/hosts.allow
sshd,sshd2:10.10.1.*:allow

 

#cat /etc/hosts.deny
#sshd:ALL

 /etc/ssh/sshd_config

 

 

# vi /etc/ssh/sshd_config
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPIAuthentication yes
#GSSAPICleanupCredentials yes
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

 

   重启 

# service sshd restart

 

问题:root登陆不了

 

#vi /etc/ssh/sshd_config

PermitRootLogin no 改为 PermitRootLogin yes

  

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics