RedHat 6/Oracle Linux 6不允许通过ssh进行密钥认证 [英] RedHat 6/Oracle Linux 6 is not allowing key authentication via ssh
本文介绍了RedHat 6/Oracle Linux 6不允许通过ssh进行密钥认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
密钥已正确部署在〜/.ssh/authorized_keys
Keys are properly deployed in ~/.ssh/authorized_keys
但是ssh会继续提示输入密码.
Yet ssh keeps on prompting for a password.
推荐答案
几个问题,主要是特权-但也与RedHat 6上的SELinux有关
Several issues, mostly privileges - but also related to SELinux on RedHat 6
以下脚本应将其全部修复,请用匹配的用户名和组替换<user>:<group>
The following script should fix them all, please replace <user>:<group>
with your matching userid and group
chown -R <user>:<group> ~/.ssh
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*
restorecon -R -v ~/.ssh
这篇关于RedHat 6/Oracle Linux 6不允许通过ssh进行密钥认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文