首页 > 其他 > 详细

ssh免密问题配置

时间:2019-05-23 14:21:30      阅读:110      评论:0      收藏:0      [点我收藏+]

1、查看免密登录日志

  tail -f /var/log/secure

2、编辑ssh配置文件,参考配置

  vi /etc/pam.d/system-auth 

  vi /etc/pam.d/password-auth

  技术分享图片

3、修改/etc/ssh/sshd_config ---参考值

  PermitRootLogin yes

  PubkeyAuthentication yes

  AuthorizedKeysFile      .ssh/authorized_keys

  RSAAuthentication yes

4、不行重新配置

  搞定


 

   

ssh免密问题配置

原文:https://www.cnblogs.com/wind-man/p/10911343.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!