How can I make the SSH client not ask for a passph

2019-06-25 13:45发布

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条回答
一夜七次
2楼-- · 2019-06-25 13:51

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.

查看更多
登录 后发表回答