sshd权限问题导致无法登陆
sshd是SSH守护进程(Secure Shell Daemon)的缩写,它是SSH服务端程序,用于提供安全的远程登录和远程命令执行服务。SSH使用加密技术来保证数据传输的安全性,防止数据在传输过程中被窃听或篡改
问题
Xshell用key认证登录,提示所选的用户密钥未在远程主机上注册
解决
查看日志/var/log/secure,基本上都是用户根目录的权限问题
根据日志提示: Authentication refused: bad ownership or modes for directory /root
说明root权限有问题: chmod g-w /home/your_user chmod 700 /home/your_user/.ssh chmod 600 /home/your_user/.ssh/authorized_keys