Guest User

Untitled

a guest
Mar 9th, 2018
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.04 KB | None | 0 0
  1. ssh -t -v my-rails-project@192.168.29.205 sudo /home/my-rails-project/x/pg_rsync_ralph07_to_ralph12_finish
  2.  
  3. OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016
  4. debug1: Reading configuration data /etc/ssh/ssh_config
  5. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  6. debug1: Connecting to 192.168.29.205 [192.168.29.205] port 22.
  7. debug1: Connection established.
  8. debug1: identity file /home/my-rails-project/.ssh/id_rsa type 1
  9. debug1: key_load_public: No such file or directory
  10. debug1: identity file /home/my-rails-project/.ssh/id_rsa-cert type -1
  11. debug1: key_load_public: No such file or directory
  12. debug1: identity file /home/my-rails-project/.ssh/id_dsa type -1
  13. debug1: key_load_public: No such file or directory
  14. debug1: identity file /home/my-rails-project/.ssh/id_dsa-cert type -1
  15. debug1: key_load_public: No such file or directory
  16. debug1: identity file /home/my-rails-project/.ssh/id_ecdsa type -1
  17. debug1: key_load_public: No such file or directory
  18. debug1: identity file /home/my-rails-project/.ssh/id_ecdsa-cert type -1
  19. debug1: key_load_public: No such file or directory
  20. debug1: identity file /home/my-rails-project/.ssh/id_ed25519 type -1
  21. debug1: key_load_public: No such file or directory
  22. debug1: identity file /home/my-rails-project/.ssh/id_ed25519-cert type -1
  23. debug1: Enabling compatibility mode for protocol 2.0
  24. debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  25. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  26. debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000
  27. debug1: Authenticating to 192.168.29.205:22 as 'my-rails-project'
  28. debug1: SSH2_MSG_KEXINIT sent
  29. debug1: SSH2_MSG_KEXINIT received
  30. debug1: kex: algorithm: curve25519-sha256@libssh.org
  31. debug1: kex: host key algorithm: ecdsa-sha2-nistp256
  32. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  33. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  34. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  35. debug1: Server host key: ecdsa-sha2-nistp256 SHA256:EnDsn2kFQgiA56e4B2UuvDr3ajTLlN7/15lxLItnjUQ
  36. debug1: Host '192.168.29.205' is known and matches the ECDSA host key.
  37. debug1: Found key in /home/my-rails-project/.ssh/known_hosts:1
  38. debug1: rekey after 134217728 blocks
  39. debug1: SSH2_MSG_NEWKEYS sent
  40. debug1: expecting SSH2_MSG_NEWKEYS
  41. debug1: rekey after 134217728 blocks
  42. debug1: SSH2_MSG_NEWKEYS received
  43. debug1: SSH2_MSG_EXT_INFO received
  44. debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
  45. debug1: SSH2_MSG_SERVICE_ACCEPT received
  46. debug1: Authentications that can continue: publickey
  47. debug1: Next authentication method: publickey
  48. debug1: Offering RSA public key: /home/my-rails-project/.ssh/id_rsa
  49. debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
  50. debug1: Authentication succeeded (publickey).
  51. Authenticated to 192.168.29.205 ([192.168.29.205]:22).
  52. debug1: channel 0: new [client-session]
  53. debug1: Requesting no-more-sessions@openssh.com
  54. debug1: Entering interactive session.
  55. debug1: pledge: network
  56. debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
  57. debug1: Sending environment.
  58. debug1: Sending env LANG = en_US.UTF-8
  59. debug1: Sending command: sudo /home/my-rails-project/x/pg_rsync_ralph07_to_ralph12_finish
  60.  
  61. OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016
  62. debug1: Reading configuration data /etc/ssh/ssh_config
  63. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  64. debug1: Connecting to 192.168.29.205 [192.168.29.205] port 22.
  65. debug1: Connection established.
  66. debug1: permanently_set_uid: 0/0
  67. debug1: key_load_public: No such file or directory
  68. debug1: identity file /root/.ssh/id_rsa type -1
  69. debug1: key_load_public: No such file or directory
  70. debug1: identity file /root/.ssh/id_rsa-cert type -1
  71. debug1: key_load_public: No such file or directory
  72. debug1: identity file /root/.ssh/id_dsa type -1
  73. debug1: key_load_public: No such file or directory
  74. debug1: identity file /root/.ssh/id_dsa-cert type -1
  75. debug1: key_load_public: No such file or directory
  76. debug1: identity file /root/.ssh/id_ecdsa type -1
  77. debug1: key_load_public: No such file or directory
  78. debug1: identity file /root/.ssh/id_ecdsa-cert type -1
  79. debug1: key_load_public: No such file or directory
  80. debug1: identity file /root/.ssh/id_ed25519 type -1
  81. debug1: key_load_public: No such file or directory
  82. debug1: identity file /root/.ssh/id_ed25519-cert type -1
  83. debug1: Enabling compatibility mode for protocol 2.0
  84. debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  85. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  86. debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000
  87. debug1: Authenticating to 192.168.29.205:22 as 'my-rails-project'
  88. debug1: SSH2_MSG_KEXINIT sent
  89. debug1: SSH2_MSG_KEXINIT received
  90. debug1: kex: algorithm: curve25519-sha256@libssh.org
  91. debug1: kex: host key algorithm: ecdsa-sha2-nistp256
  92. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  93. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  94. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  95. debug1: Server host key: ecdsa-sha2-nistp256 SHA256:EnDsn2kFQgiA56e4B2UuvDr3ajTLlN7/15lxLItnjUQ
  96. debug1: Host '192.168.29.205' is known and matches the ECDSA host key.
  97. debug1: Found key in /root/.ssh/known_hosts:1
  98. debug1: rekey after 134217728 blocks
  99. debug1: SSH2_MSG_NEWKEYS sent
  100. debug1: expecting SSH2_MSG_NEWKEYS
  101. debug1: rekey after 134217728 blocks
  102. debug1: SSH2_MSG_NEWKEYS received
  103. debug1: SSH2_MSG_EXT_INFO received
  104. debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
  105. debug1: SSH2_MSG_SERVICE_ACCEPT received
  106. debug1: Authentications that can continue: publickey
  107. debug1: Next authentication method: publickey
  108. debug1: Trying private key: /root/.ssh/id_rsa
  109. debug1: Trying private key: /root/.ssh/id_dsa
  110. debug1: Trying private key: /root/.ssh/id_ecdsa
  111. debug1: Trying private key: /root/.ssh/id_ed25519
  112. debug1: No more authentication methods to try.
  113. Permission denied (publickey).
  114.  
  115. debug1: Found key in /root/.ssh/known_hosts:1
  116.  
  117. debug1: Found key in /home/my-rails-project/.ssh/known_hosts:1
  118.  
  119. sudo myScript
  120.  
  121. ssh -o UserKnownHostsFile=/home/my-rails-project/.ssh/known_hosts -t -v my-rails-project@192.168.29.205 sudo /home/my-rails-project/x/pg_rsync_ralph07_to_ralph12_finish
  122.  
  123. my-rails-project@my-rails-project:~$ sudo ssh -o UserKnownHostsFile=/home/my-rails-project/.ssh/known_hosts -t -v my-rails-project@192.168.29.205 sudo /home/my-rails-project/x/pg_rsync_ralph07_to_ralph12_finish
  124. [sudo] password for my-rails-project:
  125. OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016
  126. debug1: Reading configuration data /etc/ssh/ssh_config
  127. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  128. debug1: Connecting to 192.168.29.205 [192.168.29.205] port 22.
  129. debug1: Connection established.
  130. debug1: permanently_set_uid: 0/0
  131. debug1: key_load_public: No such file or directory
  132. debug1: identity file /root/.ssh/id_rsa type -1
  133. debug1: key_load_public: No such file or directory
  134. debug1: identity file /root/.ssh/id_rsa-cert type -1
  135. debug1: key_load_public: No such file or directory
  136. debug1: identity file /root/.ssh/id_dsa type -1
  137. debug1: key_load_public: No such file or directory
  138. debug1: identity file /root/.ssh/id_dsa-cert type -1
  139. debug1: key_load_public: No such file or directory
  140. debug1: identity file /root/.ssh/id_ecdsa type -1
  141. debug1: key_load_public: No such file or directory
  142. debug1: identity file /root/.ssh/id_ecdsa-cert type -1
  143. debug1: key_load_public: No such file or directory
  144. debug1: identity file /root/.ssh/id_ed25519 type -1
  145. debug1: key_load_public: No such file or directory
  146. debug1: identity file /root/.ssh/id_ed25519-cert type -1
  147. debug1: Enabling compatibility mode for protocol 2.0
  148. debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  149. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  150. debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000
  151. debug1: Authenticating to 192.168.29.205:22 as 'my-rails-project'
  152. debug1: SSH2_MSG_KEXINIT sent
  153. debug1: SSH2_MSG_KEXINIT received
  154. debug1: kex: algorithm: curve25519-sha256@libssh.org
  155. debug1: kex: host key algorithm: ecdsa-sha2-nistp256
  156. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  157. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  158. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  159. debug1: Server host key: ecdsa-sha2-nistp256 SHA256:EnDsn2kFQgiA56e4B2UuvDr3ajTLlN7/15lxLItnjUQ
  160. debug1: Host '192.168.29.205' is known and matches the ECDSA host key.
  161. debug1: Found key in /home/my-rails-project/.ssh/known_hosts:1
  162. debug1: rekey after 134217728 blocks
  163. debug1: SSH2_MSG_NEWKEYS sent
  164. debug1: expecting SSH2_MSG_NEWKEYS
  165. debug1: rekey after 134217728 blocks
  166. debug1: SSH2_MSG_NEWKEYS received
  167. debug1: SSH2_MSG_EXT_INFO received
  168. debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
  169. debug1: SSH2_MSG_SERVICE_ACCEPT received
  170. debug1: Authentications that can continue: publickey
  171. debug1: Next authentication method: publickey
  172. debug1: Trying private key: /root/.ssh/id_rsa
  173. debug1: Trying private key: /root/.ssh/id_dsa
  174. debug1: Trying private key: /root/.ssh/id_ecdsa
  175. debug1: Trying private key: /root/.ssh/id_ed25519
  176. debug1: No more authentication methods to try.
  177. Permission denied (publickey).
  178. my-rails-project@my-rails-project:~$
  179.  
  180. debug1: Authentications that can continue: publickey
  181. debug1: Next authentication method: publickey
  182. debug1: Trying private key: /root/.ssh/id_rsa
  183. debug1: Trying private key: /root/.ssh/id_dsa
  184. debug1: Trying private key: /root/.ssh/id_ecdsa
  185. debug1: Trying private key: /root/.ssh/id_ed25519
  186. debug1: No more authentication methods to try.
  187. Permission denied (publickey).
  188. my-rails-project@my-rails-project:~$
  189.  
  190. ssh -o UserKnownHostsFile=/home/my-rails-project/.ssh/known_hosts -i /home/my-rails-project/.ssh/id_rsa -t -v my-rails-project@192.168.29.205 sudo /home/my-rails-project/x/pg_rsync_ralph07_to_ralph12_finish
  191.  
  192. my-rails-project@my-rails-project:~$ sudo ssh -o UserKnownHostsFile=/home/my-rails-project/.ssh/known_hosts -i /home/my-rails-project/.ssh/id_rsa -t -v my-rails-project@192.168.29.205 sudo /home/my-rails-project/x/pg_rsync_ralph07_to_ralph12_finish
  193. OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016
  194. debug1: Reading configuration data /etc/ssh/ssh_config
  195. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  196. debug1: Connecting to 192.168.29.205 [192.168.29.205] port 22.
  197. debug1: Connection established.
  198. debug1: permanently_set_uid: 0/0
  199. debug1: identity file /home/my-rails-project/.ssh/id_rsa type 1
  200. debug1: key_load_public: No such file or directory
  201. debug1: identity file /home/my-rails-project/.ssh/id_rsa-cert type -1
  202. debug1: Enabling compatibility mode for protocol 2.0
  203. debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  204. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  205. debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000
  206. debug1: Authenticating to 192.168.29.205:22 as 'my-rails-project'
  207. debug1: SSH2_MSG_KEXINIT sent
  208. debug1: SSH2_MSG_KEXINIT received
  209. debug1: kex: algorithm: curve25519-sha256@libssh.org
  210. debug1: kex: host key algorithm: ecdsa-sha2-nistp256
  211. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  212. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  213. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  214. debug1: Server host key: ecdsa-sha2-nistp256 SHA256:EnDsn2kFQgiA56e4B2UuvDr3ajTLlN7/15lxLItnjUQ
  215. debug1: Host '192.168.29.205' is known and matches the ECDSA host key.
  216. debug1: Found key in /home/my-rails-project/.ssh/known_hosts:1
  217. debug1: rekey after 134217728 blocks
  218. debug1: SSH2_MSG_NEWKEYS sent
  219. debug1: expecting SSH2_MSG_NEWKEYS
  220. debug1: rekey after 134217728 blocks
  221. debug1: SSH2_MSG_NEWKEYS received
  222. debug1: SSH2_MSG_EXT_INFO received
  223. debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
  224. debug1: SSH2_MSG_SERVICE_ACCEPT received
  225. debug1: Authentications that can continue: publickey
  226. debug1: Next authentication method: publickey
  227. debug1: Offering RSA public key: /home/my-rails-project/.ssh/id_rsa
  228. debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
  229. Enter passphrase for key '/home/my-rails-project/.ssh/id_rsa':
  230. debug1: Authentication succeeded (publickey).
  231. Authenticated to 192.168.29.205 ([192.168.29.205]:22).
  232. debug1: channel 0: new [client-session]
  233. debug1: Requesting no-more-sessions@openssh.com
  234. debug1: Entering interactive session.
  235. debug1: pledge: network
  236. debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
  237. debug1: Sending environment.
  238. debug1: Sending env LANG = en_US.UTF-8
  239. debug1: Sending command: sudo /home/my-rails-project/x/pg_rsync_ralph07_to_ralph12_finish
  240.  
  241. Enter passphrase for key '/home/my-rails-project/.ssh/id_rsa':
  242.  
  243. # This script should only be run on Ralph07
  244. my-rails-project ALL=(ALL:ALL) NOPASSWD: /home/my-rails-project/x/pg_rsync_ralph07_to_ralph12
  245.  
  246. # This script should only be run on Ralph12
  247. my-rails-project ALL=(ALL:ALL) NOPASSWD: /home/my-rails-project/x/pg_rsync_ralph07_to_ralph12_finish
Add Comment
Please, Sign In to add comment