Git Server Frustration (Gitosis, Gitolite, etc)

后端 未结 6 696
生来不讨喜
生来不讨喜 2021-01-31 20:15

Please excuse the frustrating undertones as I have attempted to get this set up correctly multiple times to no avail (possibly and most likely due to my ignorance, but also

6条回答
  •  抹茶落季
    2021-01-31 20:42

    I think the problem is that you ssh client (windows or linux version) is not finding the key file. I had the same problem and solved this way:

    • In my notebook, generated the key file (rafael.nicoletti@mycorporation) in ~/.ssh folder (where ~ is home folder. windows version is %HOME% env)
    • I added a file name config in ~/.ssh with following content:

      IdentityFile ~/.ssh/rafael.nicoletti@corporation

    In every location i want to access my git servers, i just copy those files in my %HOME% folder

    You can also put the some things like this in config file:

    IdentityFile /d/identity.key
    IdentityFile /e/identity.key
    IdentityFile /f/identity.key
    IdentityFile /.../identity.key
    

    So the config will look for keys in removable medias.

提交回复
热议问题