【linux】ssh无法root免密解决

在设置了root的私钥和公钥,添加authorized_keys,修改文件权限为600后,用root账号 ssh localhost结果失败了,还是要密码。

解决:

vim /etc/ssh/sshd_config

修改

PermitRootLogin yes
原文地址:https://www.cnblogs.com/dplearning/p/7445620.html