Advertisement
Phylum

ssh/scp connections fail immediately

Dec 27th, 2012
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.10 KB | None | 0 0
  1. # from /var/log/secure
  2. Dec 27 00:50:04 daniel sshd[3822]: Connection from 10.0.0.74 port 47522
  3. Dec 27 00:50:38 daniel sshd[2221]: debug3: fd 4 is not O_NONBLOCK
  4. Dec 27 00:50:38 daniel sshd[4352]: debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7
  5. Dec 27 00:50:38 daniel sshd[2221]: debug1: Forked child 4352.
  6. Dec 27 00:50:38 daniel sshd[2221]: debug3: send_rexec_state: entering fd = 7 config len 597
  7. Dec 27 00:50:38 daniel sshd[2221]: debug3: ssh_msg_send: type 0
  8. Dec 27 00:50:38 daniel sshd[2221]: debug3: send_rexec_state: done
  9. Dec 27 00:50:38 daniel sshd[4352]: debug1: inetd sockets after dupping: 3, 3
  10.  
  11.  
  12. # from another ec2 instance
  13. # ssh 10.0.0.22 -vvvv
  14. OpenSSH_5.3p1, OpenSSL 1.0.0j-fips 10 May 2012
  15. debug1: Reading configuration data /etc/ssh/ssh_config
  16. debug1: Applying options for *
  17. debug2: ssh_connect: needpriv 0
  18. debug1: Connecting to 10.0.0.22 [10.0.0.22] port 22.
  19. debug1: Connection established.
  20. debug1: permanently_set_uid: 0/0
  21. debug1: identity file /root/.ssh/identity type -1
  22. debug1: identity file /root/.ssh/id_rsa type -1
  23. debug1: identity file /root/.ssh/id_dsa type -1
  24. debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
  25. debug1: match: OpenSSH_4.3 pat OpenSSH_4*
  26. debug1: Enabling compatibility mode for protocol 2.0
  27. debug1: Local version string SSH-2.0-OpenSSH_5.3
  28. debug2: fd 3 setting O_NONBLOCK
  29. debug1: SSH2_MSG_KEXINIT sent
  30. debug3: Wrote 792 bytes for a total of 813
  31. Read from socket failed: Connection reset by peer
  32.  
  33.  
  34.  
  35. # WINSCP FROM WINDOWS
  36. . 2012-12-27 09:17:19.689 --------------------------------------------------------------------------
  37. . 2012-12-27 09:17:19.689 WinSCP Version 4.2.8 (Build 818) (OS 6.1.7601 Service Pack 1)
  38. . 2012-12-27 09:17:19.689 Login time: Thursday, December 27, 2012 9:17:19 AM
  39. . 2012-12-27 09:17:19.689 --------------------------------------------------------------------------
  40. . 2012-12-27 09:17:19.689 Session name: F.Q.D.N
  41. . 2012-12-27 09:17:19.689 Host name: F.Q.D.N (Port: 22)
  42. . 2012-12-27 09:17:19.689 User name: (Password: No, Key file: No)
  43. . 2012-12-27 09:17:19.689 Tunnel: No
  44. . 2012-12-27 09:17:19.689 Transfer Protocol: SCP
  45. . 2012-12-27 09:17:19.689 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
  46. . 2012-12-27 09:17:19.689 Proxy: none
  47. . 2012-12-27 09:17:19.689 SSH protocol version: 2; Compression: No
  48. . 2012-12-27 09:17:19.689 Bypass authentication: No
  49. . 2012-12-27 09:17:19.690 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
  50. . 2012-12-27 09:17:19.690 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
  51. . 2012-12-27 09:17:19.690 SSH Bugs: -,-,-,-,-,-,-,-,-
  52. . 2012-12-27 09:17:19.690 SFTP Bugs: -,-
  53. . 2012-12-27 09:17:19.690 Return code variable: Autodetect; Lookup user groups: Yes
  54. . 2012-12-27 09:17:19.690 Shell: default
  55. . 2012-12-27 09:17:19.690 EOL: 0, UTF: 2
  56. . 2012-12-27 09:17:19.690 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
  57. . 2012-12-27 09:17:19.690 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
  58. . 2012-12-27 09:17:19.690 Local directory: default, Remote directory: home, Update: No, Cache: Yes
  59. . 2012-12-27 09:17:19.690 Cache directory changes: Yes, Permanent: Yes
  60. . 2012-12-27 09:17:19.690 DST mode: 1
  61. . 2012-12-27 09:17:19.690 --------------------------------------------------------------------------
  62. . 2012-12-27 09:17:19.833 Looking up host "F.Q.D.N"
  63. . 2012-12-27 09:17:19.834 Connecting to public.ip.add.ress port 22
  64. . 2012-12-27 09:17:19.859 Selecting events 63 for socket 532
  65. . 2012-12-27 09:17:19.863 Waiting for the server to continue with the initialisation
  66. . 2012-12-27 09:17:19.863 Looking for incoming data
  67. . 2012-12-27 09:17:19.863 Looking for network events
  68. . 2012-12-27 09:17:19.863 Detected network event
  69. . 2012-12-27 09:17:19.863 Enumerating network events for socket 532
  70. . 2012-12-27 09:17:19.863 Enumerated 18 network events making 18 cumulative events for socket 532
  71. . 2012-12-27 09:17:19.863 Handling network write event on socket 532 with error 0
  72. . 2012-12-27 09:17:19.863 Handling network connect event on socket 532 with error 0
  73. . 2012-12-27 09:17:19.863 Looking for network events
  74. . 2012-12-27 09:17:19.896 Detected network event
  75. . 2012-12-27 09:17:20.047 Enumerating network events for socket 532
  76. . 2012-12-27 09:17:20.047 Enumerated 1 network events making 1 cumulative events for socket 532
  77. . 2012-12-27 09:17:20.047 Handling network read event on socket 532 with error 0
  78. . 2012-12-27 09:17:20.047 Server version: SSH-2.0-OpenSSH_4.3
  79. . 2012-12-27 09:17:20.047 We believe remote version has SSH-2 ignore bug
  80. . 2012-12-27 09:17:20.047 Using SSH protocol version 2
  81. . 2012-12-27 09:17:20.047 We claim version: SSH-2.0-WinSCP_release_4.2.8
  82. . 2012-12-27 09:17:20.047 Waiting for the server to continue with the initialisation
  83. . 2012-12-27 09:17:20.047 Looking for incoming data
  84. . 2012-12-27 09:17:20.047 Looking for network events
  85. . 2012-12-27 09:17:20.073 Detected network event
  86. . 2012-12-27 09:17:20.074 Enumerating network events for socket 532
  87. . 2012-12-27 09:17:20.074 Enumerated 32 network events making 32 cumulative events for socket 532
  88. . 2012-12-27 09:17:20.074 Handling network close event on socket 532 with error 0
  89. . 2012-12-27 09:17:20.074 Selecting events 0 for socket 532
  90. . 2012-12-27 09:17:20.074 Server unexpectedly closed network connection
  91. * 2012-12-27 09:17:20.086 (ESshFatal) Server unexpectedly closed network connection.
  92. . 2012-12-27 09:20:25.421 --------------------------------------------------------------------------
  93. . 2012-12-27 09:20:25.421 WinSCP Version 4.2.8 (Build 818) (OS 6.1.7601 Service Pack 1)
  94. . 2012-12-27 09:20:25.421 Login time: Thursday, December 27, 2012 9:20:25 AM
  95. . 2012-12-27 09:20:25.421 --------------------------------------------------------------------------
  96. . 2012-12-27 09:20:25.421 Session name: F.Q.D.N
  97. . 2012-12-27 09:20:25.421 Host name: F.Q.D.N (Port: 22)
  98. . 2012-12-27 09:20:25.421 User name: (Password: No, Key file: Yes)
  99. . 2012-12-27 09:20:25.421 Tunnel: No
  100. . 2012-12-27 09:20:25.421 Transfer Protocol: SCP
  101. . 2012-12-27 09:20:25.421 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
  102. . 2012-12-27 09:20:25.421 Proxy: none
  103. . 2012-12-27 09:20:25.421 SSH protocol version: 2; Compression: No
  104. . 2012-12-27 09:20:25.421 Bypass authentication: No
  105. . 2012-12-27 09:20:25.421 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
  106. . 2012-12-27 09:20:25.421 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
  107. . 2012-12-27 09:20:25.421 SSH Bugs: -,-,-,-,-,-,-,-,-
  108. . 2012-12-27 09:20:25.421 SFTP Bugs: -,-
  109. . 2012-12-27 09:20:25.421 Return code variable: Autodetect; Lookup user groups: Yes
  110. . 2012-12-27 09:20:25.421 Shell: default
  111. . 2012-12-27 09:20:25.422 EOL: 0, UTF: 2
  112. . 2012-12-27 09:20:25.422 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
  113. . 2012-12-27 09:20:25.422 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
  114. . 2012-12-27 09:20:25.422 Local directory: default, Remote directory: home, Update: No, Cache: Yes
  115. . 2012-12-27 09:20:25.422 Cache directory changes: Yes, Permanent: Yes
  116. . 2012-12-27 09:20:25.422 DST mode: 1
  117. . 2012-12-27 09:20:25.422 --------------------------------------------------------------------------
  118. . 2012-12-27 09:20:25.545 Looking up host "F.Q.D.N"
  119. . 2012-12-27 09:20:25.576 Connecting to public.ip.add.ress port 22
  120. . 2012-12-27 09:20:25.600 Selecting events 63 for socket 712
  121. . 2012-12-27 09:20:25.604 Waiting for the server to continue with the initialisation
  122. . 2012-12-27 09:20:25.604 Looking for incoming data
  123. . 2012-12-27 09:20:25.604 Looking for network events
  124. . 2012-12-27 09:20:25.604 Detected network event
  125. . 2012-12-27 09:20:25.604 Enumerating network events for socket 712
  126. . 2012-12-27 09:20:25.604 Enumerated 18 network events making 18 cumulative events for socket 712
  127. . 2012-12-27 09:20:25.604 Handling network write event on socket 712 with error 0
  128. . 2012-12-27 09:20:25.604 Handling network connect event on socket 712 with error 0
  129. . 2012-12-27 09:20:25.604 Looking for network events
  130. . 2012-12-27 09:20:25.633 Detected network event
  131. . 2012-12-27 09:20:25.633 Enumerating network events for socket 712
  132. . 2012-12-27 09:20:25.633 Enumerated 1 network events making 1 cumulative events for socket 712
  133. . 2012-12-27 09:20:25.633 Handling network read event on socket 712 with error 0
  134. . 2012-12-27 09:20:25.633 Server version: SSH-2.0-OpenSSH_4.3
  135. . 2012-12-27 09:20:25.633 We believe remote version has SSH-2 ignore bug
  136. . 2012-12-27 09:20:25.633 Using SSH protocol version 2
  137. . 2012-12-27 09:20:25.633 We claim version: SSH-2.0-WinSCP_release_4.2.8
  138. . 2012-12-27 09:20:25.633 Waiting for the server to continue with the initialisation
  139. . 2012-12-27 09:20:25.633 Looking for incoming data
  140. . 2012-12-27 09:20:25.633 Looking for network events
  141. . 2012-12-27 09:20:25.658 Detected network event
  142. . 2012-12-27 09:20:25.658 Enumerating network events for socket 712
  143. . 2012-12-27 09:20:25.658 Enumerated 32 network events making 32 cumulative events for socket 712
  144. . 2012-12-27 09:20:25.658 Handling network close event on socket 712 with error 0
  145. . 2012-12-27 09:20:25.658 Selecting events 0 for socket 712
  146. . 2012-12-27 09:20:25.658 Server unexpectedly closed network connection
  147. * 2012-12-27 09:20:25.681 (ESshFatal) Server unexpectedly closed network connection.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement