免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4272 | 回复: 0

[故障求助] ssh能够连接上,sftp无效,传输不了文件 [复制链接]

论坛徽章:
1
技术图书徽章
日期:2013-09-17 09:11:51
发表于 2014-06-05 13:58 |显示全部楼层
度娘,Google了好久也没有解决问题,现在求助论坛大拿!


PS: 这里ssh连接都无问题,使用SecureFX作为sftp的客户端。

      sshd_config配置文件也有subsystem的配置。

下面是客户端的log:
  1. i SecureFX 版本 6.6.1.289 (Official Release - November 4, 2010)
  2. i 会话 00008 成功建立(为) session 172.16.3.51
  3. i SSH2Core version 6.6.0.289
  4. i 正在连接到 172.16.3.51:22 ...
  5. i 正在从状态 STATE_NOT_CONNECTED 更改为 STATE_EXPECT_KEX_INIT
  6. i Using protocol SSH2
  7. i RECV : Remote Identifier = 'SSH-2.0-OpenSSH_5.8'
  8. i CAP  : Remote can re-key
  9. i CAP  : Remote sends language in password change requests
  10. i CAP  : Remote sends algorithm name in PK_OK packets
  11. i CAP  : Remote sends algorithm name in public key packets
  12. i CAP  : Remote sends algorithm name in signatures
  13. i CAP  : Remote sends error text in open failure packets
  14. i CAP  : Remote sends name in service accept packets
  15. i CAP  : Remote includes port number in x11 open packets
  16. i CAP  : Remote uses 160 bit keys for SHA1 MAC
  17. i CAP  : Remote supports new diffie-hellman group exchange messages
  18. i CAP  : Remote correctly handles unknown SFTP extensions
  19. i CAP  : Remote correctly encodes OID for gssapi
  20. i CAP  : Remote correctly uses connected addresses in forwarded-tcpip requests
  21. i CAP  : Remote can do SFTP version 4
  22. i CAP  : Remote x.509v3 uses ASN.1 encoding for DSA signatures
  23. i SSPI : Requesting full delegation
  24. i SSPI : [Kerberos] SPN : host@172.16.3.51
  25. i SSPI : [Kerberos] InitializeSecurityContext() failed.
  26. i SSPI : [Kerberos] The specified target is unknown or unreachable
  27. i SSPI : [Kerberos] Disabling gss mechanism
  28. i GSS  : Requesting full delegation
  29. i GSS  : [Kerberos] SPN : host@172.16.3.51
  30. i GSS  : [Kerberos] InitializeSecurityContext() failed.
  31. i GSS  : [Kerberos] Could not load library 'gssapi32.dll': The specified module could not be found.
  32. i GSS  : [Kerberos] Disabling gss mechanism
  33. i GSS  : [Kerberos] Disabling gss mechanism
  34. i The following key exchange method has been filtered from the key exchange method list because it is not supported: gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==
  35. i SSPI : Requesting full delegation
  36. i SSPI : [Kerberos (Group Exchange)] SPN : host@172.16.3.51
  37. i SSPI : [Kerberos (Group Exchange)] InitializeSecurityContext() failed.
  38. i SSPI : [Kerberos (Group Exchange)] The specified target is unknown or unreachable
  39. i SSPI : [Kerberos (Group Exchange)] Disabling gss mechanism
  40. i GSS  : Requesting full delegation
  41. i GSS  : [Kerberos (Group Exchange)] SPN : host@172.16.3.51
  42. i GSS  : [Kerberos (Group Exchange)] InitializeSecurityContext() failed.
  43. i GSS  : [Kerberos (Group Exchange)] Could not load library 'gssapi32.dll': The specified module could not be found.
  44. i GSS  : [Kerberos (Group Exchange)] Disabling gss mechanism
  45. i GSS  : [Kerberos (Group Exchange)] Disabling gss mechanism
  46. i The following key exchange method has been filtered from the key exchange method list because it is not supported: gss-gex-sha1-toWM5Slw5Ew8Mqkay+al2g==
  47. i SEND : KEXINIT
  48. i RECV : Read kexinit
  49. i Available Remote Kex Methods = diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
  50. i Selected Kex Method = diffie-hellman-group-exchange-sha1
  51. i Available Remote Host Key Algos = ssh-rsa,ssh-dss
  52. i Selected Host Key Algo = ssh-dss
  53. i Available Remote Send Ciphers = aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
  54. i Selected Send Cipher = aes256-ctr
  55. i Available Remote Recv Ciphers = aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
  56. i Selected Recv Cipher = aes256-ctr
  57. i Available Remote Send Macs = hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
  58. i Selected Send Mac = hmac-sha1
  59. i Available Remote Recv Macs = hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
  60. i Selected Recv Mac = hmac-sha1
  61. i Available Remote Compressors = none,zlib@openssh.com
  62. i Selected Compressor = none
  63. i Available Remote Decompressors = none,zlib@openssh.com
  64. i Selected Decompressor = none
  65. i 正在从状态 STATE_EXPECT_KEX_INIT 更改为 STATE_KEY_EXCHANGE
  66. i SEND : KEXDH_GEX_REQUEST
  67. i RECV : KEXDH_GEX_GROUP
  68. i SEND : KEXDH_INIT
  69. i RECV : KEXDH_REPLY
  70. i SEND : NEWKEYS
  71. i 正在从状态 STATE_KEY_EXCHANGE 更改为 STATE_EXPECT_NEWKEYS
  72. i RECV: Remote Hostkey: 54:9a:13:05:ef:4a:69:a4:c3:0d:83:33:f6:41:78:b5
  73. i RECV : NEWKEYS
  74. i 正在从状态 STATE_EXPECT_NEWKEYS 更改为 STATE_CONNECTION
  75. i SEND: SERVICE_REQUEST[ssh-userauth]
  76. i RECV: SERVICE_ACCEPT[ssh-userauth] -- OK
  77. i SENT : USERAUTH_REQUEST [none]
  78. i RECV : USERAUTH_FAILURE, continuations [publickey,password,keyboard-interactive]
  79. i SENT : USERAUTH_REQUEST [password]
  80. i RECV : AUTH_SUCCESS
  81. i Channel Closed.
复制代码
ssh连接成功之后,随即便断开了连接,通过抓包发现是客户端发送的FIN关闭。使用root用户也没用。

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP