ssh免密登录失败原因
# 免密登录失败
# 权限不正确(可能是多了)
https://blog.csdn.net/lisongjia123/article/details/78513244
查看系统日志:
cat /var/log/auth.log
cat /var/log/secure
1
2
2
配置权限:
chmod g-w /home/skyler
chmod 700 /home/skyler/.ssh
chmod 600 /home/skyler/.ssh/authorized_keys
1
2
3
4
2
3
4
# 允许root ssh登录
vi /etc/ssh/sshd_config
PermiRootLogin yes PubkeyAuthentication yes
# 重启生效
service sshd restart
编辑 (opens new window)
上次更新: 2022/08/08, 17:23:27