cancel
Showing results for 
Search instead for 
Did you mean: 
spurs
Flight Engineer
Flight Engineer
  • 2,767 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_
Community Manager
Community Manager
  • 2,750 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
  • 2,734 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
  • 2,730 Views

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

Chetan_Tiwary_
Community Manager
Community Manager
  • 2,710 Views

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

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