简体   繁体   English

Git - 如何删除 SSH Windows 上的键 10

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM