栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

ssh key authentication失败,查看日志是selinux禁止了sshd读取authorized

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ssh key authentication失败,查看日志是selinux禁止了sshd读取authorized

ssh key authentication失败,查看日志是selinux禁止了sshd读取authorized_keys文件:

May  5 04:24:36 localhost dbus[704]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
May  5 04:24:37 localhost dbus[704]: [system] Successfully activated service 'org.fedoraproject.Setroubleshootd'
May  5 04:24:37 localhost setroubleshoot: SELinux is preventing sshd from read access on the file authorized_keys. For complete SELinux messages run: sealert -l f2f58b71-8d62-404b-aa6e-bb044cecbdbc
May  5 04:24:37 localhost python: SELinux is preventing sshd from read access on the file authorized_keys.#012#012*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************#012#012If you want to allow use to nfs home dirs#012Then you must tell SELinux about this by enabling the 'use_nfs_home_dirs' boolean.#012#012Do#012setsebool -P use_nfs_home_dirs 1#012#012*****  Plugin catchall (11.6 confidence) suggests   **************************#012#012If you believe that sshd should be allowed read access on the authorized_keys file by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# ausearch -c 'sshd' --raw | audit2allow -M my-sshd#012# semodule -i my-sshd.pp#012

 

解决方法

禁掉selinux或按照提示设置一下。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/859897.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号