ssh-add -D 不会从 ssh-agent 中删除存储的密钥

age*_*ith 15 ssh openssh sshd

怎么会这样?:

stan@tcpc:~/.ssh$ ssh-add -l
8192 e0:45:5e:cc:45:3e:17:2b:a6:54:6f:8d:53:1b:j2:e3 github (RSA)
2048 25:41:53:a6:45:5d:ac:eb:5c:45:f8:ce:42:a9:he:aa BITBUCKET (RSA)
stan@tcpc:~/.ssh$ ssh-add -D
All identities removed.
stan@tcpc:~/.ssh$ ssh-add -l
8192 e0:45:5e:cc:45:3e:17:2b:a6:54:6f:8d:53:1b:j2:e3 github (RSA)
2048 25:41:53:a6:45:5d:ac:eb:5c:45:f8:ce:42:a9:he:aa BITBUCKET (RSA)
Run Code Online (Sandbox Code Playgroud)

为什么密钥没有被擦除?

ps可能是这个错误?http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472477 不过我在 arch linux 上......

小智 3

这篇文章中的步骤对我有用;您只需打开启动应用程序管理器,取消选中“SSH Key Agent - GNOME Keyring:SSH Agent”条目,然后重新启动 Unity。如果没有显示,请编辑/etc/xdg/autostart/gnome-keyring-ssh.desktop并更改NoDisplay=trueNoDisplay=false.

  • “这篇文章”的链接已失效 (2认同)