I would like to use the DOS command line to enter the command: git clone "git_path.git" myDir
It asks me to enter a password which I would like to avoid.
I usually use TortoiseGit to do all git related operations. I would like to setup cruisecontrol using ant with a custom git task. Therefore I need to perform git clone
on the command line in Windows 7. But it only works using git bash and not DOS.
According to other forum entries, I tried to convert the key with puttyGen and put the file id_rsa
in c:/Users/myName/.ssh
I also added an authorized_keys
file but it still asks for a password. Any ideas?
Thanks
Best Answer
I'd guess that the problem is that git bash knows to look for a public-key in your home directory, but the DOS box doesn't.
There are, I think, a few options available to you (none of which I've tried, since I don't have a Windows box to hand):
pageant
(I assume you're not, since you didn't say you were) and that you've got that private key loaded.GIT_SSH
environment-variable to something that specifies the location of the private-key - I'd guess the contents should probably be something likeplink -i c:/Users/myName/.ssh
.