Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. localhost remotehost
  2. ========= ==========
  3. // sudo root user
  4. user:joe user:admin
  5. passsword:xxx password:admin123
  6. .ssh/id_rsa.pub ----------------------------------> ./ssh/authorised_keys
  7.  
  8. [defaults]
  9. ansible_user=joe
  10. ansible_ssh_user=admin
  11. private_key_file=/home/pauloconnell/.ssh/id_rsa.pem
  12.  
  13. localhost remotehost
  14. ========= ==========
  15. // sudo root user
  16. user:joe user:admin
  17. passsword:xxx password:admin123
  18. ~~.ssh/id_rsa.pub ----------------------------------> ./ssh/authorised_keys~~
  19. user:ansible_ssh_user user:ansible_ssh_user
  20. .ssh/id_rsa.pub ----------------------------------> ./ssh/authorised_keys
  21.  
  22. [defaults]
  23. ansible_user=ansible_ssh_user
  24. ansible_ssh_user=ansible_ssh_user
  25. private_key_file=??
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement