Closed newfylox closed 1 year ago
It seems that you tried with your public ssh key, did you try to use your local private key instead ~/.ssh/id_rsa
?
Also make sure the ssh key you mention is allowed to clone your repository and check your ~/.ssh/config
file to see if there is no mistakes about your configuration with hosts that you are trying to reach (like a wrong or outdated key left)
Not an Ansistrano bug, please check the Ansible docs to see how to use SSH keys correctly
Hi, I don't know if it's something I'm missing or if it's a bug, but like Capistrano, I was thinking that Ansistrano was using the same SSH key that is used to SSH on the server to clone the Github repository, hence not necessary to provide a path to the local SSH key.
For example, if I'm on my laptop, the command
git clone git@github.com:my/repository.git
works, so I thought it would work on the remote server that Ansistrano is connecting through SSH.Of course, I tried with or without providing a local SSH key.
I have a minimal configuration like this
and I get this error
Of course,
git@github.com:my/repository.git
is not the real repository