免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4792 | 回复: 2
打印 上一主题 下一主题

【求助】SSH登录出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-22 11:19 |只看该作者 |倒序浏览
我就打了一个10.0的补丁然后重启就悲剧了……

重新生成密钥也没有用

root@Testserver # ssh localhost
no common kex alg: client 'diffie-hellman-group-exchange-sha1,diffie-hellman-gro
up1-sha1', server 'gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g=='

论坛徽章:
0
2 [报告]
发表于 2011-03-23 12:04 |只看该作者
本帖最后由 可可火山 于 2011-03-23 12:10 编辑



我也有这个错误,oracle solaris 11 express.
不过从linux直接ssh可以连入,应该ssh密钥交换算法啥的不能沟通吧。

论坛徽章:
0
3 [报告]
发表于 2011-03-23 12:18 |只看该作者
附上使用Linux ssh的verbose输出,LZ有进展请更新下,我也好奇哪里有问题。
  1. [user@~ (0)]$ssh -vvv solaris
  2. OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
  3. debug1: Reading configuration data /home/user/.ssh/config
  4. debug1: Applying options for solaris
  5. debug1: Reading configuration data /etc/ssh/ssh_config
  6. debug1: Applying options for *
  7. debug2: ssh_connect: needpriv 0
  8. debug1: Connecting to localhost [127.0.0.1] port 2222.
  9. debug1: Connection established.
  10. debug3: Not a RSA1 key file /home/user/.ssh/id_dsa.solaris.
  11. debug2: key_type_from_name: unknown key type '-----BEGIN'
  12. debug3: key_read: missing keytype
  13. debug3: key_read: missing whitespace
  14. debug3: key_read: missing whitespace
  15. debug3: key_read: missing whitespace
  16. debug3: key_read: missing whitespace
  17. debug3: key_read: missing whitespace
  18. debug3: key_read: missing whitespace
  19. debug3: key_read: missing whitespace
  20. debug3: key_read: missing whitespace
  21. debug3: key_read: missing whitespace
  22. debug3: key_read: missing whitespace
  23. debug2: key_type_from_name: unknown key type '-----END'
  24. debug3: key_read: missing keytype
  25. debug1: identity file /home/user/.ssh/id_dsa.solaris type -1
  26. debug1: loaded 1 keys
  27. debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.5
  28. debug1: no match: Sun_SSH_1.5
  29. debug1: Enabling compatibility mode for protocol 2.0
  30. debug1: Local version string SSH-2.0-OpenSSH_4.3
  31. debug2: fd 3 setting O_NONBLOCK
  32. debug1: SSH2_MSG_KEXINIT sent
  33. debug1: SSH2_MSG_KEXINIT received
  34. debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
  35. debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
  36. debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
  37. debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
  38. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
  39. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
  40. debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
  41. debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
  42. debug2: kex_parse_kexinit:
  43. debug2: kex_parse_kexinit:
  44. debug2: kex_parse_kexinit: first_kex_follows 0
  45. debug2: kex_parse_kexinit: reserved 0
  46. debug2: kex_parse_kexinit: gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
  47. debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
  48. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour128,arcfour256,arcfour
  49. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour128,arcfour256,arcfour
  50. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
  51. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
  52. debug2: kex_parse_kexinit: none,zlib
  53. debug2: kex_parse_kexinit: none,zlib
  54. debug2: kex_parse_kexinit: af-ZA,ar-EG,as-IN,az-AZ,be-BY,bg-BG,bn-IN,bs-BA,ca-ES,cs-CZ,da-DK,de-DE,el-GR,en-US,es-ES,et-EE,fi-FI,fr-FR,gu-IN,he-IL,hi-IN,hr-HR,hu-HU,hy-AM,id-ID,is-IS,it-IT,ja-JP,ka-GE,kk-KZ,kn-IN,ko-KR,ks-IN,ku-TR,ky-KG,lt-LT,lv-LV,mk-MK,ml-IN,mr-IN,ms-MY,mt-MT,nb-NO,nl-NL,nn-NO,or-IN,pa-IN,pl-PL,pt-BR,pt-PT,ro-RO,ru-RU,sa-IN,sk-SK,sl-SI,sq-AL,sr-RS,sv-SE,th-TH,tr-TR,uk-UA,vi-VN,zh-CN,i-default,zh-TW
  55. debug2: kex_parse_kexinit: af-ZA,ar-EG,as-IN,az-AZ,be-BY,bg-BG,bn-IN,bs-BA,ca-ES,cs-CZ,da-DK,de-DE,el-GR,en-US,es-ES,et-EE,fi-FI,fr-FR,gu-IN,he-IL,hi-IN,hr-HR,hu-HU,hy-AM,id-ID,is-IS,it-IT,ja-JP,ka-GE,kk-KZ,kn-IN,ko-KR,ks-IN,ku-TR,ky-KG,lt-LT,lv-LV,mk-MK,ml-IN,mr-IN,ms-MY,mt-MT,nb-NO,nl-NL,nn-NO,or-IN,pa-IN,pl-PL,pt-BR,pt-PT,ro-RO,ru-RU,sa-IN,sk-SK,sl-SI,sq-AL,sr-RS,sv-SE,th-TH,tr-TR,uk-UA,vi-VN,zh-CN,i-default,zh-TW
  56. debug2: kex_parse_kexinit: first_kex_follows 0
  57. debug2: kex_parse_kexinit: reserved 0
  58. debug2: mac_init: found hmac-md5
  59. debug1: kex: server->client arcfour128 hmac-md5 none
  60. debug2: mac_init: found hmac-md5
  61. debug1: kex: client->server arcfour128 hmac-md5 none
  62. debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
  63. debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
  64. debug2: dh_gen_key: priv key bits set: 133/256
  65. debug2: bits set: 500/1024
  66. debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
  67. debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
  68. debug3: check_host_in_hostfile: filename /home/user/.ssh/known_hosts
  69. debug3: check_host_in_hostfile: match line 3
  70. debug1: Host 'localhost' is known and matches the RSA host key.
  71. debug1: Found key in /home/user/.ssh/known_hosts:3
  72. debug2: bits set: 499/1024
  73. debug1: ssh_rsa_verify: signature correct
  74. debug2: kex_derive_keys
  75. debug2: set_newkeys: mode 1
  76. debug1: SSH2_MSG_NEWKEYS sent
  77. debug1: expecting SSH2_MSG_NEWKEYS
  78. debug2: set_newkeys: mode 0
  79. debug1: SSH2_MSG_NEWKEYS received
  80. debug1: SSH2_MSG_SERVICE_REQUEST sent
  81. debug2: service_accept: ssh-userauth
  82. debug1: SSH2_MSG_SERVICE_ACCEPT received
  83. debug2: key: /home/user/.ssh/id_dsa.solaris ((nil))
  84. debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
  85. debug3: start over, passed a different list gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
  86. debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
  87. debug3: authmethod_lookup gssapi-with-mic
  88. debug3: remaining preferred: publickey,keyboard-interactive,password
  89. debug3: authmethod_is_enabled gssapi-with-mic
  90. debug1: Next authentication method: gssapi-with-mic
  91. debug3: Trying to reverse map address 127.0.0.1.
  92. debug1: Unspecified GSS failure.  Minor code may provide more information
  93. No credentials cache found

  94. debug1: Unspecified GSS failure.  Minor code may provide more information
  95. No credentials cache found

  96. debug1: Unspecified GSS failure.  Minor code may provide more information
  97. No credentials cache found

  98. debug2: we did not send a packet, disable method
  99. debug3: authmethod_lookup publickey
  100. debug3: remaining preferred: keyboard-interactive,password
  101. debug3: authmethod_is_enabled publickey
  102. debug1: Next authentication method: publickey
  103. debug1: Trying private key: /home/user/.ssh/id_dsa.solaris
  104. debug1: read PEM private key done: type DSA
  105. debug3: sign_and_send_pubkey
  106. debug2: we sent a publickey packet, wait for reply
  107. debug1: Authentication succeeded (publickey).
  108. debug1: channel 0: new [client-session]
  109. debug3: ssh_session2_open: channel_new: 0
  110. debug2: channel 0: send open
  111. debug1: Entering interactive session.
  112. debug2: callback start
  113. debug2: client_session2_setup: id 0
  114. debug2: channel 0: request pty-req confirm 0
  115. debug3: tty_make_modes: ospeed 38400
  116. debug3: tty_make_modes: ispeed 38400
  117. debug3: tty_make_modes: 1 3
  118. debug3: tty_make_modes: 2 28
  119. debug3: tty_make_modes: 3 127
  120. debug3: tty_make_modes: 4 21
  121. debug3: tty_make_modes: 5 4
  122. debug3: tty_make_modes: 6 0
  123. debug3: tty_make_modes: 7 0
  124. debug3: tty_make_modes: 8 17
  125. debug3: tty_make_modes: 9 19
  126. debug3: tty_make_modes: 10 26
  127. debug3: tty_make_modes: 12 18
  128. debug3: tty_make_modes: 13 23
  129. debug3: tty_make_modes: 14 22
  130. debug3: tty_make_modes: 18 15
  131. debug3: tty_make_modes: 30 0
  132. debug3: tty_make_modes: 31 0
  133. debug3: tty_make_modes: 32 0
  134. debug3: tty_make_modes: 33 0
  135. debug3: tty_make_modes: 34 0
  136. debug3: tty_make_modes: 35 0
  137. debug3: tty_make_modes: 36 1
  138. debug3: tty_make_modes: 37 0
  139. debug3: tty_make_modes: 38 1
  140. debug3: tty_make_modes: 39 0
  141. debug3: tty_make_modes: 40 0
  142. debug3: tty_make_modes: 41 0
  143. debug3: tty_make_modes: 50 1
  144. debug3: tty_make_modes: 51 1
  145. debug3: tty_make_modes: 52 0
  146. debug3: tty_make_modes: 53 1
  147. debug3: tty_make_modes: 54 1
  148. debug3: tty_make_modes: 55 1
  149. debug3: tty_make_modes: 56 0
  150. debug3: tty_make_modes: 57 0
  151. debug3: tty_make_modes: 58 0
  152. debug3: tty_make_modes: 59 1
  153. debug3: tty_make_modes: 60 1
  154. debug3: tty_make_modes: 61 1
  155. debug3: tty_make_modes: 62 0
  156. debug3: tty_make_modes: 70 1
  157. debug3: tty_make_modes: 71 0
  158. debug3: tty_make_modes: 72 1
  159. debug3: tty_make_modes: 73 0
  160. debug3: tty_make_modes: 74 0
  161. debug3: tty_make_modes: 75 0
  162. debug3: tty_make_modes: 90 1
  163. debug3: tty_make_modes: 91 1
  164. debug3: tty_make_modes: 92 0
  165. debug3: tty_make_modes: 93 0
  166. debug1: Sending environment.
  167. debug3: Ignored env HOSTNAME
  168. debug3: Ignored env SHELL
  169. debug3: Ignored env TERM
  170. debug3: Ignored env HISTSIZE
  171. debug3: Ignored env SSH_CLIENT
  172. debug3: Ignored env KDE_NO_IPV6
  173. debug3: Ignored env CVSROOT
  174. debug3: Ignored env SSH_TTY
  175. debug3: Ignored env USER
  176. debug3: Ignored env LD_LIBRARY_PATH
  177. debug3: Ignored env LS_COLORS
  178. debug3: Ignored env ORACLE_SID
  179. debug3: Ignored env ORACLE_HOSTNAME
  180. debug3: Ignored env ORACLE_BASE
  181. debug3: Ignored env TERMCAP
  182. debug3: Ignored env KDEDIR
  183. debug3: Ignored env AM_HOME
  184. debug3: Ignored env PATH
  185. debug3: Ignored env MAIL
  186. debug3: Ignored env STY
  187. debug3: Ignored env NXDIR
  188. debug3: Ignored env PWD
  189. debug3: Ignored env INPUTRC
  190. debug3: Ignored env JAVA_HOME
  191. debug3: Ignored env KDE_IS_PRELINKED
  192. debug1: Sending env LANG = en_US.UTF-8
  193. debug2: channel 0: request env confirm 0
  194. debug3: Ignored env ORACLE_TERM
  195. debug3: Ignored env PS1
  196. debug3: Ignored env CA_HOME
  197. debug3: Ignored env SSH_ASKPASS
  198. debug3: Ignored env HOME
  199. debug3: Ignored env SHLVL
  200. debug3: Ignored env LOGNAME
  201. debug3: Ignored env CVS_RSH
  202. debug3: Ignored env WINDOW
  203. debug3: Ignored env SSH_CONNECTION
  204. debug3: Ignored env LESSOPEN
  205. debug3: Ignored env ORACLE_HOME
  206. debug3: Ignored env G_BROKEN_FILENAMES
  207. debug3: Ignored env _
  208. debug3: Ignored env OLDPWD
  209. debug2: channel 0: request shell confirm 0
  210. debug2: fd 3 setting TCP_NODELAY
  211. debug2: callback done
  212. debug2: channel 0: open confirm rwindow 0 rmax 32768
  213. debug1: Remote: Channel 0 set: LANG=en_US.UTF-8
  214. debug2: channel 0: rcvd adjust 131072
  215. Last login: Tue Mar 22 12:16:43 2011 from 10.0.2.2
  216. Oracle Corporation      SunOS 5.11      snv_151a        November 2010
  217. slsuser@solaris:~$ debug2: client_check_window_change: changed
  218. debug2: channel 0: request window-change confirm 0
  219. slsuser@solaris:~$
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP