git查看ssh密钥命令
时间: 2023-09-21 20:03:50 浏览: 110
ssh命令秘钥
要查看git的SSH密钥,可以使用以下命令:ls -al ~/.ssh。这个命令会列出~/.ssh目录中的所有文件,包括SSH密钥文件。如果提示“~/.ssh不存在”,说明还没有SSH密钥,可以使用其他方法生成新的SSH密钥。另外一种方式是通过本地右键Git Gui Here,然后选择Help -> Show SSH Key,即可复制公钥。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Git检查现有 SSH 密钥](https://blog.csdn.net/qq_43561914/article/details/116151351)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [Git生成SSH Key(密钥)以及三种查看方式](https://blog.csdn.net/weixin_44801980/article/details/116370656)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文