Where does GitHub for Windows keep its SSH key?

后端 未结 5 1220
野趣味
野趣味 2020-12-08 01:38

GitHub distributes a simplified Git client for Windows they call GitHub for Windows; it authenticates via GitHub account, and although it usually uses HTTPS remotes for loca

相关标签:
5条回答
  • 2020-12-08 02:09

    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.

    0 讨论(0)
  • 2020-12-08 02:14

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

    0 讨论(0)
  • 2020-12-08 02:17

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

    0 讨论(0)
  • 2020-12-08 02:26

    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.

    0 讨论(0)
  • 2020-12-08 02:32

    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.

    0 讨论(0)
提交回复
热议问题