Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. EXEC sshpass -d29 ssh -C -vvv
  2. -o ControlMaster=auto
  3. -o ControlPersist=60s
  4. -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no
  5. -o Port=58030
  6. -o User=em7admin
  7. -o ConnectTimeout=30 127.0.0.1 /bin/sh
  8. -c 'sudo -H -p "[sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: "
  9. -S -u root /bin/sh
  10. -c '"'"'echo BECOME-SUCCESS-mxraphooaxhpruunceorxkcelobceggf; LANG=C LC_MESSAGES=C LC_CTYPE=C /usr/bin/python'"'"''
  11.  
  12. debug1: Sending command: /bin/sh -c 'sudo -H -p "[sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: " -S -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-mxraphooaxhpruunceorxkcelobceggf; LANG=C LC_MESSAGES=C LC_CTYPE=C /usr/bin/python'"'"''
  13. debug2: channel 2: request exec confirm 1
  14. debug3: mux_session_confirm: sending success reply
  15. debug2: callback done
  16. debug2: channel 2: open confirm rwindow 0 rmax 32768
  17. debug1: mux_client_request_session: master session id: 2
  18. debug2: channel 2: rcvd adjust 2097152
  19. debug2: channel_input_status_confirm: type 99 id 2
  20. debug2: exec request accepted on channel 2
  21. debug2: channel 2: read<=0 rfd 6 len 0
  22. debug2: channel 2: read failed
  23. debug2: channel 2: close_read
  24. debug2: channel 2: input open -> drain
  25. debug2: channel 2: ibuf empty
  26. debug2: channel 2: send eof
  27. debug2: channel 2: input drain -> closed
  28. debug2: channel 2: rcvd ext data 67
  29. [sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: debug2: channel 2: written 67 to efd 8
  30. debug2: channel 2: rcvd ext data 18
  31. debug2: channel 2: rcvd ext data 67
  32. Sorry, try again.n[sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: debug2: channel 2: written 85 to efd 8
  33. debug2: channel 2: rcvd ext data 18
  34. debug2: channel 2: rcvd ext data 67
  35. Sorry, try again.n[sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: debug2: channel 2: written 85 to efd 8
  36. debug2: channel 2: rcvd ext data 18
  37. debug2: channel 2: rcvd ext data 36
  38. Sorry, try again.nsudo: 3 incorrect password attemptsndebug2: channel 2: written 54 to efd 8
  39. debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
  40. debug3: mux_exit_message: channel 2: exit message, exitval 1
  41. debug1: client_input_channel_req: channel 2 rtype eow@openssh.com reply 0
  42.  
  43. - hosts: devices
  44. gather_facts: False
  45. pre_tasks:
  46. - name: Get ephemeral port
  47. local_action: ephemeral_port
  48. register: ephemeral_port
  49. - name: Run local ssh command to enable proxy
  50. local_action: shell /usr/bin/ssh -p {{proxy_port}} -o 'HostKeyAlias=[{{proxy_ip}}]:{{proxy_port}}' -o 'UserKnownHostsFile=/home/user/.ssh/known_hosts' -i /home/user/.ssh/id_dsa -o 'ConnectTimeout=5' -o 'ControlMaster=auto' -o 'ControlPath=%r@%h:%p' -o 'ControlPersist=10s' -f -N -l binc -L {{ephemeral_port.port}}:{{silo_private_ip}}:22 {{proxy_ip}}
  51. - name: Change ansible port to ephemeral port
  52. set_fact:
  53. ansible_port: "{{ephemeral_port.port}}"
  54. tasks:
  55. - name: test
  56. sudo: yes
  57. shell: hostname
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement