我想从 Windows 计算机登录 Ubuntu 服务器。当我使用 PowerShell 时,权限被拒绝。
PS C:\Users\sebastian> ssh [email protected]
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
[email protected]: Permission denied (publickey,password).
PS C:\Users\sebastian>
当我使用 Ubuntu 子系统时,它按预期工作。
seb@DESKTOP-U20EMGM:~$ ssh [email protected]
[email protected]'s password:
Welcome to Ubuntu 24.04 LTS (GNU/Linux 6.8.0-31-generic aarch64)
当我将公钥添加到authorized_keys 文件时,这种行为就开始了。我已经检查了权限,但它们看起来很好:
seb@ubuntu-4gb-hel1-1:~/.ssh$ ls -la
total 12
drwx------ 2 seb seb 4096 May 20 04:45 .
drwxr-x--- 9 seb seb 4096 May 19 15:14 ..
-rw------- 1 seb seb 2109 May 20 04:45 authorized_keys
我怀疑这可能是 Windows PowerShell 的问题。有人能指出我正确的方向吗?