[英]Git - How to Remove SSH Key on Windows 10
I have about 5 SSH keys on my computer, and I've added 2 SSH keys by using ssh-add
command.我的计算机上有大约 5 个 SSH 密钥,并且我使用
ssh-add
命令添加了 2 个 SSH 密钥。 When listing all SSH keys, I can use ssh-add -l
command列出所有 SSH 密钥时,我可以使用
ssh-add -l
命令
How can I delete a single or all SSH key that I just added?如何删除我刚刚添加的单个或全部 SSH 密钥?
I mentioned before ssh-add -D
to delete all your manually added keys.我之前提到过
ssh-add -D
删除所有手动添加的密钥。
The other option would be to kill the ssh-agent
process , restart it and add only the one you want to keep.另一种选择是杀死
ssh-agent
进程,重新启动它并只添加你想要保留的那个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.