Chinaunix

标题: sshd-config的问题 [打印本页]

作者: yanhuo_149    时间: 2012-01-05 18:34
标题: sshd-config的问题

   
#PermitEmptyPasswords no
#PasswordAuthentication no




为什么还是可以以密码登录的?
已经重启过ssh。
作者: chenyx    时间: 2012-01-05 18:51
把#去掉,重启sshd服务
作者: dooros    时间: 2012-01-05 22:05
#的意思是注释,删除后此行才生效。
作者: king_819    时间: 2012-01-06 11:13
#ServerKeyBits 768 注释取消,将768改为1024
#PermitRootLogin yes 注释取消,将yes改为no 禁止root登录
#PermitEmptyPasswords no 取消注释,禁止空密码登录
#PasswordAuthentication no 取消注释,禁止使用密码方式登录,有密钥谁还用密码啊
  1. ServerKeyBits 1024
  2. PermitRootLogin no
  3. PermitEmptyPasswords no
  4. PasswordAuthentication no
复制代码





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2