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

I am trying to configure CC.net to create from my private Git repository.

I created a key pair in which the private key does not have a passphrase, and uploaded the public key to the server. I can do git clone git@myserver :myrepo when I just started it from the command line.

The problem is that when I try to clone a repo, I have to specify a passphrase, although it doesn't exist. This means that I have to press enter, and this will make the automated clone hang forever (since this should not be done).

How to fix this problem?

+4
source share
1 answer

The problem was that in my .ssh / config file I specified the PuTTY key file my_id.ppk instead of the OpenSSH file. Setting the OpenSSH file made it work.

+4
source

Source: https://habr.com/ru/post/1390643/


All Articles