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

前端 未结 5 1223
迷失自我
迷失自我 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:33

    I ran into this problem on Windows 7 using Git Bash on top of Cygwin.

    The issue was that my SSH client was not the one installed with Git (I also have Tortoise SVN installed which installs its own SSH client).

    You can check the value of $GIT_SSH this should be set to the SSH binary installed with git not some other client (like one that comes with Tortoise SVN/Git).

    To do so in Cygwin run echo $GIT_SSH it should be something like "C:\Program Files\Git\bin\ssh.exe" if it is not you can update its value in your environment variables

    (On Windows 7: Start->Right click on 'Computer' -> Properties -> Advanced system settings -> Environment Variables -> Select 'GIT_SSH' -> click 'Edit...' -> Enter the path to ssh.exe for 'Variable value:'.

提交回复
热议问题