Where does GitHub for Windows keep its SSH key?

一个人想着一个人 提交于 2019-11-28 18:07:25
user2929588

%HOMEDRIVE%%HOMEPATH%\.ssh\id_rsa.pub is where the key is

On my work PC it is in %USERPROFILE%/.ssh/ and not %HOMEDRIVE%%HOMEPATH%/.ssh/.

On many computers those folders are the same location, but it depends on the configuration. So it seems %USERPROFILE% is the location used by GitHub for Windows, which is also the ~ home location for its Git-Bash.

This is confusing since my Windows-Git default installation uses %HOMEDRIVE%%HOMEPATH% as its ~ home location.

The default location is: %HOMEDRIVE%%HOMEPATH%\.ssh\id_rsa.pub. That would expand to something like C:\Users\dennis\.ssh\id_rsa.pub

If %HOMEDRIVE%%HOMEPATH%\.ssh\id_rsa.pub already exists, github creates a key named github_rsa(.pub) in the same folder.

It's in %HOMEDRIVE%%HOMEPATH%\.ssh

Note that GitHub for Windows normally uses SSL; SSH keys won't have been created unless you've used an SSH repository with it at some point.

runovskyi

On my Windows 10 Home the .ssh folder's path is %HOMEDRIVE%%HOMEPATH%\AppData\Roaming\SPB_Data\.ssh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!