Advertisement
Guest User

Untitled

a guest
Jan 21st, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. auth [default=1 success=ignore] pam_succeed_if.so user != ansible
  2. auth required my_awesome_pam_module.so
  3. auth required pam_permit.so
  4.  
  5. $ ssh 37.187.108.43 -p 22442 -v
  6. [...]
  7. Authenticated with partial success.
  8. debug1: Authentications that can continue: keyboard-interactive
  9. debug1: Next authentication method: keyboard-interactive
  10. debug1: Authentication succeeded (keyboard-interactive).
  11. Authenticated to 37.187.108.43 ([37.187.108.43]:22442).
  12. debug1: channel 0: new [client-session]
  13. debug1: Requesting no-more-sessions@openssh.com
  14. debug1: Entering interactive session.
  15. debug1: Sending environment.
  16.  
  17. $ ansible myawesomeserver -m ping -vvvv
  18. myawesomeserver | FAILED => SSH encountered an unknown error. The output was:
  19. [...]
  20. Authenticated with partial success.
  21. debug2: key: /home/ansible/.ssh/id_rsa (0x11429d9791f0),
  22. debug2: key: /home/ansible/.ssh/id_rsa ((nil)),
  23. debug2: key: /home/ansible/.ssh/id_dsa ((nil)),
  24. debug2: key: /home/ansible/.ssh/id_ecdsa ((nil)),
  25. debug2: key: /home/ansible/.ssh/id_ed25519 ((nil)),
  26. debug1: Authentications that can continue: keyboard-interactive
  27. debug3: start over, passed a different list keyboard-interactive
  28. debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey
  29. debug1: No more authentication methods to try.
  30. Permission denied (keyboard-interactive).
  31.  
  32. $ ansible myawesomeserver -m ping -vvvv
  33. SSH password:
  34. <my_ip> ESTABLISH CONNECTION FOR USER: ansible
  35. <my_ip> REMOTE_MODULE ping
  36. myawesomeserver | FAILED => to use the 'ssh' connection type with passwords, you must install the sshpass program
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement