password problem with git clone gitosis@host:gitosis-admin.git

前端 未结 5 1222
迷失自我
迷失自我 2021-01-04 17:09

I\'m confronted with some problems when trying to configure gitosis on Ubuntu. When i run this command

git clone gitosis@host:gitosis-admin.git
5条回答
  •  灰色年华
    2021-01-04 17:35

    Gitosis never works with passwords. It always uses SSH keys. You need to configure the use of whatever public key goes with the private key you gave it when you ran gitosis-init. You would do this by editing ~/.ssh/config to include a stanza like

    Host githost # hostname you use on the commandline, in git remotes, etc.
    HostName 12.34.56.78 # actually IP address or DNS name to connect to
    User gitosis
    IdentityFile ~/.ssh/id_rsa # whatever file stores the private key matching the public key you gave gitosis
    

提交回复
热议问题