Guest User

Untitled

a guest
Jan 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. ansible_ssh_common_args: '-o ProxyCommand="ssh -q -W %h:%p -p {{ JUMPER_PORT }} root@{{ JUMPER_IP }}"'
  2.  
  3. ansible -i $PWD all
  4. -m ping
  5. --extra-vars="JUMPER_IP=10.X.X.X JUMPER_PORT=6666"
  6.  
  7. <---> (255, b'', b'ssh: illegal option -- -
  8. usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [- c cipher_spec]
  9. [-D [bind_address:]port] [- E log_file] [-e escape_char]
  10. [-F configfile] [-I pkcs11] [-i identity_file]
  11. [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
  12. [-O ctl_cmd] [-o option] [- p port] [-Q query_option] [-R address]
  13. [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
  14. [user@]hostname [command]
  15. ')
  16.  
  17. <global> SSH: EXEC ssh -C -o
  18. ControlMaster=auto -o .
  19. ControlPersist=60s -o
  20. KbdInteractiveAuthentication=no
  21. -o PreferredAuthentications=gssapi-with-mic,gssapi- keyex,hostbased,publickey
  22. -o PasswordAuthentication=no
  23. -o ConnectTimeout=10
  24. -o 'ProxyCommand=ssh -q -W %h:%p
  25. -p 6666 root@10.X.X.X'
  26. -o ControlPath=/Users/me/.ansible/cp/853aabe504
  27. global '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
  28.  
  29. --- | UNREACHABLE! => {
  30. "changed": false,
  31. "msg": "Failed to connect to the host via ssh: ssh: illegal option --
  32. -nusage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c
  33. cipher_spec]n [-D [bind_address:]port] [-E log_file] [-e
  34. escape_char]n [-F configfile] [-I pkcs11] [-i
  35. identity_file]n [-J [user@]host[:port]] [-L address] [-l .
  36. login_name] [-m mac_spec]n [-O ctl_cmd] [-o option] [-p
  37. port] [-Q query_option] [-R address]n [-S ctl_path] [-W
  38. host:port] [-w local_tun[:remote_tun]]n [user@]hostname
  39. [command]n",
  40. "unreachable": true
  41. }
Add Comment
Please, Sign In to add comment