How can I make the SSH client not ask for a passphrase when it is not required

烂漫一生 提交于 2019-12-10 15:56:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!