MSysGit and ssh config. missing

后端 未结 1 723
终归单人心
终归单人心 2020-12-03 22:04

1) Run Git Bash (C:\\Program Files (x86)\\Git\\bin\\sh.exe --login)

$ ssh -v git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configu         


        
相关标签:
1条回答
  • 2020-12-03 22:16

    What is probably missing is the user environment variable HOME.

    If you launch your DOS session from the git-cmd.bat script packaged with msysgit, it should be defined, and you should see %HOME%\.ssh\id_rsa(.pub)

    But from any other DOS windows, HOME isn't defined by default (HOMEPATH or USERPROFILE are).
    See also "Fix msysGit Portable $HOME location" as an illustration (but you shouldn't need that workaround with recent versions of msysgit and its git-cmd.bat script)

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