cancel
Showing results for 
Search instead for 
Did you mean: 
spurs
Flight Engineer
Flight Engineer
  • 1,535 Views

Ansible 'unreachable, permission denied' error

spurs_0-1693313417925.png

 

I was able to ping from the control node to 2 manage nodes.

It showed unreachable error.. and permission denied error makes me more confused. 

The user2 is in full control access with sudo privileges.

How can I resolve this error?

 

Labels (3)
4 Replies
Chetan_Tiwary_
Moderator
Moderator
  • 1,518 Views

@spurs what about the ssh configuration ?  Are you able to connect to the servers using ssh command ? Are you using the correct password ( for both ssh and privilege escalation)  ? Increase the verbosity mode like -vv or -vvv to see if you can get anything in the debug mode.

spurs
Flight Engineer
Flight Engineer
  • 1,502 Views

Yes, I was able to connect to the managed nodes by ssh as well.

From the control node, I created ssh key and copied it to managed nodes.

After that, I connected to each managed node by ssh to make sure.

spurs
Flight Engineer
Flight Engineer
  • 1,498 Views

omg now it worked. I said that I copied the key but actually I didn't

Chetan_Tiwary_
Moderator
Moderator
  • 1,478 Views

Great @spurs ! Glad that it is working now for you. 

Join the discussion
You must log in to join this conversation.