问题
I'm trying to set up CC.net to build from my private Git repo.
I have created a key pair, where the private key has no passphrase, and uploaded the public key to the server. I am able to do a git clone git@myserver:myrepo
when just running it from the command prompt.
The problem is that when I try to clone the repo, I have to specify the passphrase, even though there is none. This means that I have to press enter, and this causes the automated clone to hang forever (since there is noone to do this).
How do I fix this problem?
回答1:
The problem was that in my .ssh/config file, I had specified the PuTTY my_id.ppk key file instead of the OpenSSH file. Specifying the OpenSSH file instead made it work.
来源:https://stackoverflow.com/questions/8835861/how-can-i-make-the-ssh-client-not-ask-for-a-passphrase-when-it-is-not-required