为什么会这样?
$ ssh-copy-id me@server
/usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/local/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
$ ssh me@server
me@server's password:
Run Code Online (Sandbox Code Playgroud)
ssh 仍然提示输入密码,即使它说密钥已经存在于远程服务器(这是 Debian)上。
更新:.ssh文件夹的内容:
$ ls -al ~/.ssh
total 72
drwx------ 9 me staff 306 22 Apr 13:20 .
drwxr-xr-x+ 65 me staff 2210 22 Apr 13:18 ..
-rwxr-xr-x 1 me staff 1397 22 Apr 11:49 config …Run Code Online (Sandbox Code Playgroud)