更新时间:2023-12-05 14:22:40
此问题已被回答很多次,更适合 AskUbuntu .
This has been answered many times and is more suitable for AskUbuntu.
简而言之,您已经加密了主文件夹(即使使用AuthorizedKeysFile
也已加密),因此服务器无法对您进行身份验证.一种可能是将授权密钥移到其他位置(AuthorizedKeysFile /etc/ssh/%u/authorized_keys
),并在登录时解密主文件夹,或者仅删除加密. 官方文档对其进行了很好的描述.
In short, you have encrypted home folder (even with your AuthorizedKeysFile
) and therefore the server can't authenticate you. One possibility is to move the authorized keys somewhere else (AuthorizedKeysFile /etc/ssh/%u/authorized_keys
) and decrypt your home folder upon login or just remove the encryption. Official documentation describes it well.