Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
11k views
in .NET FTP by (320 points)
I'm trying to connect to an sftp server (openssh on opensuse) but I'm getting a very strange error _after_ ssh auth.
I'm using edtFTPnetPRO for .NET 2.0+ (version 6.1.0.20)

Does anybody have any suggestions? Here's my trace-output (the lines of interest are marked with *):

INFO [LicenseProperties] Licence expiry date: 2958465
INFO [LicenseProperties] Production license
DEBUG [SSHFTPClient] Setting up fallback kbi prompt based on supplied password
DEBUG [HostNameResolver] xxx.xxx.xxx.xxx resolved to xxx.xxx.xxx.xxx
DEBUG [SSHFTPClient] Connecting directly to SFTP server xxx.xxx.xxx.xxx:22
DEBUG [SSHFTPClient] Connected successfully to SFTP server xxx.xxx.xxx.xxx:22
DEBUG [SSHConnection] Beginning protocol negotiation
DEBUG [PlainSocket] RepeatCallback received 21 bytes
DEBUG [ProtocolNegotiationHandler] offset=0,length=21
DEBUG [ProtocolNegotiationHandler] pos=20
INFO [ProtocolNegotiationHandler] Server version = 'SSH-2.0-OpenSSH_5.1'
DEBUG [SSHUtil] Major string = '2'
DEBUG [SSHUtil] Minor string = '0'
DEBUG [SSHUtil] Version 2.0
DEBUG [SSHUtil] Protocol compatible
DEBUG [SSHConnection] Server version=SSH-2.0-OpenSSH_5.1
DEBUG [SSH2Connection] Timeout=5000
DEBUG [SSHConnection] Sending client version=SSH-2.0-edtFTPnet/PRO-6.1.0.20
DEBUG [SSH2Connection] Starting key exchange
DEBUG [AbstractKeyExchanger] Sending SSH_MSG_KEXINIT
DEBUG [AbstractKeyExchanger] hostkey algorithms=ssh-dss,ssh-rsa
DEBUG [AbstractKeyExchanger] ciphers=aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,3des-cbc
DEBUG [AbstractKeyExchanger] ciphers=aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,3des-cbc
DEBUG [AbstractKeyExchanger] MACs=hmac-sha1,hmac-md5
DEBUG [AbstractKeyExchanger] MACs=hmac-sha1,hmac-md5
DEBUG [AbstractKeyExchanger] compression algorithms=none,zlib
DEBUG [PlainSocket] RepeatCallback received 784 bytes
DEBUG [AbstractKeyExchanger] compression algorithms=none,zlib
DEBUG [AbstractKeyExchanger] Sent SSH_MSG_KEXINIT
DEBUG [ClientKeyExchanger] Reading SSH_MSG_KEXINIT reply
DEBUG [AbstractKeyExchanger] Processing SSH_MSG_KEXINIT reply
DEBUG [AbstractKeyExchanger] Kex alg=diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
DEBUG [AbstractKeyExchanger] Hostkey alg=ssh-rsa,ssh-dss
DEBUG [ClientKeyExchanger] Cipher CS=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
DEBUG [ClientKeyExchanger] Cipher C->S= AES128
DEBUG [ClientKeyExchanger] Cipher SC=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
DEBUG [ClientKeyExchanger] Cipher S->C= AES128
DEBUG [ClientKeyExchanger] MAC CS=hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
DEBUG [ClientKeyExchanger] MAC C->S= HMACSHA1
DEBUG [ClientKeyExchanger] MAC SC=hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
DEBUG [ClientKeyExchanger] MAC S->C= HMACSHA1
DEBUG [ClientKeyExchanger] Comp CS=none,zlib@openssh.com
DEBUG [ClientKeyExchanger] Comp C->S=None
DEBUG [ClientKeyExchanger] Comp SC=none,zlib@openssh.com
DEBUG [ClientKeyExchanger] Comp S->C=None
INFO [ClientKeyExchanger] first_kex_packet_follows=False
DEBUG [AbstractKeyExchanger] Processed SSH_MSG_KEXINIT reply
DEBUG [ClientKeyExchanger] Sending SSH_MSG_KEXDH_INIT
DEBUG [ClientKeyExchanger] Sent SSH_MSG_KEXDH_INIT
DEBUG [ClientKeyExchanger] Reading SSH_MSG_KEXDH_INIT reply
DEBUG [SSH2Connection] Waiting for packet
DEBUG [PlainSocket] RepeatCallback received 656 bytes
DEBUG [SSH2Connection] Packet arrived
DEBUG [ClientKeyExchanger] Processing SSH_MSG_KEXDH_INIT reply
DEBUG [ClientKeyExchanger] Processed SSH_MSG_KEXDH_INIT reply successfully
DEBUG [ClientKeyExchanger] Sending SSH_MSG_NEWKEYS
DEBUG [ClientKeyExchanger] Sent SSH_MSG_NEWKEYS
DEBUG [ClientKeyExchanger] Established ciphers
DEBUG [ClientKeyExchanger] Established MACs
DEBUG [ClientKeyExchanger] Reading SSH_MSG_NEWKEYS reply
DEBUG [AbstractKeyExchanger] Processing SSH_MSG_NEWKEYS reply
DEBUG [AbstractKeyExchanger] Processed SSH_MSG_NEWKEYS reply
DEBUG [SSH2Connection] Key exchange complete
DEBUG [SSH2Connection] Sent SSH_MSG_SERVICE_REQUEST 'ssh-userauth'
DEBUG [SSH2Connection] Waiting for packet
DEBUG [PlainSocket] RepeatCallback received 52 bytes
DEBUG [SSH2Connection] Packet arrived
DEBUG [SSH2Connection] Starting user authentication
DEBUG [SSH2Connection] Password authentication
DEBUG [SSH2Connection] Sent SSH_MSG_USERAUTH_REQUEST
DEBUG [SSH2Connection] Waiting for packet
DEBUG [PlainSocket] RepeatCallback received 68 bytes
DEBUG [SSH2Connection] Packet arrived
DEBUG [SSH2Connection] ProcessAuthenticationResponse: SSH_MSG_USERAUTH_FAILURE
ERROR [SSH2Connection] Auth failure. Try: publickey,keyboard-interactive
DEBUG [SSH2Connection] Trying keyboard-interactive authentication
DEBUG [SSH2Connection] Starting user authentication
DEBUG [SSH2Connection] Keyboard interactive authentication
DEBUG [SSH2Connection] Sent SSH_MSG_USERAUTH_REQUEST
DEBUG [SSH2Connection] Waiting for packet
DEBUG [PlainSocket] RepeatCallback received 68 bytes
DEBUG [SSH2Connection] Packet arrived
DEBUG [SSH2Connection] ProcessAuthenticationResponse: SSH_MSG_USERAUTH_INFO_REQUEST
DEBUG [SSH2Connection] Prompt count = 1
DEBUG [SSH2Connection] Prompt: Password:
DEBUG [SSH2Connection] Sent SSH_MSG_USERAUTH_INFO_RESPONSE
DEBUG [SSH2Connection] Waiting for packet
DEBUG [PlainSocket] RepeatCallback received 52 bytes
DEBUG [SSH2Connection] Packet arrived
DEBUG [SSH2Connection] ProcessAuthenticationResponse: SSH_MSG_USERAUTH_INFO_REQUEST
DEBUG [SSH2Connection] Prompt count = 0
DEBUG [SSH2Connection] Sent SSH_MSG_USERAUTH_INFO_RESPONSE
DEBUG [SSH2Connection] Waiting for packet
DEBUG [PlainSocket] RepeatCallback received 36 bytes
DEBUG [SSH2Connection] Packet arrived
DEBUG [SSH2Connection] ProcessAuthenticationResponse: SSH_MSG_USERAUTH_SUCCESS
DEBUG [SSH2Connection] User authentication successful
DEBUG [SSH2Connection] Sent SSH_MSG_CHANNEL_OPEN
INFO [SSHFTPClient] Waiting for SSH channel to be opened
DEBUG [PlainSocket] RepeatCallback received 52 bytes
DEBUG [SSH2Connection] ProcessPacket pt=SSH_MSG_CHANNEL_OPEN_CONFIRMATION
DEBUG [SSH2Channel] ProcessPacket: status= 2 pt=SSH_MSG_CHANNEL_OPEN_CONFIRM

12 Answers

0 votes
by (162k points)
Patched DLL has been emailed to you
0 votes
by (320 points)
Thanks to the great support! :D

Within a few days I've received an updated version of the library that fixed the problem with my special case of server*).

-> Very fast, profesional and friendly guys here !


*) The server only uses SSH for the connection and no shell, but only SFTP inside.

Categories

...