How to set the SSH connection between server and remote host #1006
Unanswered
oussama-amine
asked this question in
Q&A
Replies: 1 comment
-
You SSH private key looks incorrect (its a public key). Once you correct it , login should work. A private key would look similar to that:
To keep it simple, make sure that the private key is not encrypted with a passphrase. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to use ansible-semaphore on my CentOS server to manage some distant Cisco switches with playbooks, but I couldn't find how to set the SSH key properly.
First, I have created a key with type "none" and used it for my repository on github (enverything is fine till now). Then, I have created another key for the inventory with type "ssh" but i'm not sure what to put in "private key" section. Since I've already set an SSH conncetion before to access my distant switch via ansible (which works perfectly), I have used this same key which I founded in .ssh/known_hosts file as the "private key". Now I'm getting this error when trying to run the template :
Here is my repositoriy (with key type "none"):
Here how set my ssh key :
Here is my inventory :
Here is my playbook :
Can anyone help with this please, I have been trying for days.. Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions