2

ssh证书登录错误

 2 years ago
source link: https://www.linuxzen.com/sshzheng-shu-deng-lu-cuo-wu.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

使用证书ssh链接的时候提示下面错误信息

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). 可能原因

authorizedkeys 或.ssh的权限太open .ssh 目录改成755 权限 authorizedkeys 改成600

查看日志: cat /var/log/secure 发现 Aug 8 17:15:13 CentOS62 sshd[5624]: Authentication refused: bad ownership or modes for file /home/abc/.ssh/authorized_keys 查看.ssh权限为775 .ssh 手动创建的时候是775权限,改成755权限后正常 # chmod 755 ~/.ssh


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK