git - Cannot login into gitolite server to clone, but can connect via ssh -
while there several questions similar symptoms, none same, nor solutions presented there solve issue.
i have set gitolite successfully, far aware, using these instructions, , after overcoming this issue. host user git, , have set following .ssh/config file on workstation:
host admin hostname server.com user git identityfile ~/.ssh/admin host dev hostname server.com user git identityfile ~/.ssh/micha i can ssh using admin config ssh admin , following response:
stdin: not tty hello admin, git@hostname running gitolite3 v3.5.1-2-g962e465 on git 1.7.10.2 r w gitolite-admin r w testing connection xxx.xxx.xxx.xxx closed. whenever try clone gitolite-admin repo, following response:
cloning 'gitolite-admin'... fatal: not read remote repository. please make sure have correct access rights , repository exists. according previous ssh response, have access rights. have verified git user owner of repository files on server. after researching this, have changed local git_ssh tortoiseplink.exe c:\program files (x86)\git\bin\ssh.exe , still same response. following variations of clone command elicit same response:
- 'git clone admin:gitolite-admin'
- 'git clone admin:gitolite-admin.git'
- 'git clone admin:repositories/gitolite-admin'
- 'git clone admin:~/repositories/gitolite-admin'
- 'git clone ssh://admin:gitolite-admin'
- 'git clone git@admin:gitolite-admin'
- all sorts of permutations of above variations.
i @ loss how overcome problem.
it turns out had fixed problem, needed close git-bash , restart it. changing git_ssh variable tortoiseplink c:\program files (x86)\git\bin\ssh.exe shown in this answer needed.
naively perhaps, thought variable parsed each time git clone command used, once restarted git-bash, git clone command worked!
Comments
Post a Comment