免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1754 | 回复: 4
打印 上一主题 下一主题

禁用ssh密码登陆问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-27 23:39 |只看该作者 |倒序浏览
我的sshd_config
  1. #Port 22
  2. Protocol 2
  3. #ListenAddress 0.0.0.0
  4. #ListenAddress ::

  5. # HostKey for protocol version 1
  6. #HostKey /etc/ssh/ssh_host_key
  7. # HostKeys for protocol version 2
  8. #HostKey /etc/ssh/ssh_host_dsa_key

  9. # Lifetime and size of ephemeral version 1 server key
  10. #KeyRegenerationInterval 1h
  11. #ServerKeyBits 768

  12. # Logging
  13. #obsoletes QuietMode and FascistLogging
  14. #SyslogFacility AUTH
  15. #LogLevel INFO

  16. # Authentication:

  17. #LoginGraceTime 2m
  18. PermitRootLogin without-password
  19. #StrictModes yes

  20. #RSAAuthentication yes
  21. PubkeyAuthentication yes
  22. AuthorizedKeysFile      .ssh/authorized_keys
  23. PasswordAuthentication no
复制代码

为何帐号使用密码和私钥均可登陆?

论坛徽章:
0
2 [报告]
发表于 2005-10-28 09:03 |只看该作者

禁用ssh密码登陆问题

ding

论坛徽章:
0
3 [报告]
发表于 2005-10-28 09:53 |只看该作者

禁用ssh密码登陆问题

sshd_config的注释里写了:

PasswordAuthentication no

楼主试一下

论坛徽章:
0
4 [报告]
发表于 2005-10-28 19:01 |只看该作者

禁用ssh密码登陆问题

我已经设置了,我的sshd_config最后一行就是,但还是可以用密码登陆。

论坛徽章:
0
5 [报告]
发表于 2007-01-02 15:22 |只看该作者
同问,有人知道吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP