Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Cannot initialize SFTP protocol.

Can you set logging level to Debug 2 and email me the log file?

You will find my address (if you log in) in my forum profile.
Jmiller76

Cannot initialize SFTP protocol.

I am running 4.2.9 but upgraded and still have this problem.
Normal command line connection works with PSFTP.
This does have password and key.
The log(below) points to expecting a "SSH2 ignore" bug. I don't see any of the bug options matching this name to try and disable the detection.
Error seems to be directly after "Doing startup conversation with host"

Site admin (external) is reporting that they see the login finish then immediatly close.

Because this works in PSFtp, I expect there is some setting that would need to be modified, but the errors aren't pointing a direction that seems "searchable"

Thanks,
Josh

. 2011-01-03 16:20:10.741 WinSCP Version 4.3.0 (Build 1029) (OS 6.1.7600)
. 2011-01-03 16:20:10.741 Login time: Monday, January 03, 2011 4:20:10 PM
. 2011-01-03 16:20:10.741 --------------------------------------------------------------------------
. 2011-01-03 16:20:10.741 Session name: ***SNIP***
. 2011-01-03 16:20:10.741 Host name: qadatatransfer.rbs.com (Port: 10022)
. 2011-01-03 16:20:10.741 User name: ***SNIP*** (Password: Yes, Key file: Yes)
. 2011-01-03 16:20:10.741 Tunnel: No
. 2011-01-03 16:20:10.741 Transfer Protocol: SFTP (SCP)
. 2011-01-03 16:20:10.741 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2011-01-03 16:20:10.741 Proxy: none
. 2011-01-03 16:20:10.742 SSH protocol version: 2; Compression: No
. 2011-01-03 16:20:10.742 Bypass authentication: No
. 2011-01-03 16:20:10.742 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2011-01-03 16:20:10.742 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2011-01-03 16:20:10.742 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2011-01-03 16:20:10.742 SFTP Bugs: -,-
. 2011-01-03 16:20:10.742 Return code variable: Autodetect; Lookup user groups: Yes
. 2011-01-03 16:20:10.742 Shell: default
. 2011-01-03 16:20:10.742 EOL: 0, UTF: 2
. 2011-01-03 16:20:10.742 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2011-01-03 16:20:10.742 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2011-01-03 16:20:10.742 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-01-03 16:20:10.742 Cache directory changes: Yes, Permanent: Yes
. 2011-01-03 16:20:10.742 DST mode: 1
. 2011-01-03 16:20:10.742 --------------------------------------------------------------------------
. 2011-01-03 16:20:10.782 Looking up host "qadatatransfer.rbs.com"
. 2011-01-03 16:20:10.802 Connecting to 128.167.105.165 port 10022
. 2011-01-03 16:20:10.915 Server version: SSH-2.0-Maverick_SSHD
. 2011-01-03 16:20:10.915 We believe remote version has SSH-2 ignore bug
. 2011-01-03 16:20:10.916 Using SSH protocol version 2
. 2011-01-03 16:20:10.916 We claim version: SSH-2.0-WinSCP_release_4.3
. 2011-01-03 16:20:10.984 Doing Diffie-Hellman group exchange
. 2011-01-03 16:20:11.209 Doing Diffie-Hellman key exchange with hash SHA-1
. 2011-01-03 16:20:11.356 Host key fingerprint is:
. 2011-01-03 16:20:11.356 ssh-rsa 1023 b2:b8:01:1f:63:3c:46:b9:43:ae:28:d8:24:e9:54:ce
. 2011-01-03 16:20:11.356 Initialised AES-256 CBC client->server encryption
. 2011-01-03 16:20:11.356 Initialised HMAC-SHA1 client->server MAC algorithm
. 2011-01-03 16:20:11.402 Initialised AES-256 CBC server->client encryption
. 2011-01-03 16:20:11.402 Initialised HMAC-SHA1 server->client MAC algorithm
. 2011-01-03 16:20:11.468 Reading private key file "H:\data\utilities\psftp-private.ppk"
! 2011-01-03 16:20:11.474 Using username "***SNIP***".
. 2011-01-03 16:20:11.766 Offered public key
. 2011-01-03 16:20:12.404 Offer of public key accepted
! 2011-01-03 16:20:12.404 Authenticating with public key "rsa-key-20061211"
! 2011-01-03 16:20:13.224 Further authentication required
. 2011-01-03 16:20:13.228 Further authentication required
. 2011-01-03 16:20:13.228 Prompt (6, SSH password, , &Password: )
. 2011-01-03 16:20:13.228 Using stored password.
. 2011-01-03 16:20:13.232 Sent password
. 2011-01-03 16:20:13.405 Access granted
. 2011-01-03 16:20:13.470 Opened channel for session
. 2011-01-03 16:20:14.415 Started a shell/command
. 2011-01-03 16:20:14.418 --------------------------------------------------------------------------
. 2011-01-03 16:20:14.418 Using SFTP protocol.
. 2011-01-03 16:20:14.419 Doing startup conversation with host.
> 2011-01-03 16:20:14.422 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2011-01-03 16:20:14.731 Type: SSH_FXP_STATUS, Size: 111, Number: 0
. 2011-01-03 16:20:14.731 Attempt to close connection due to fatal exception:
* 2011-01-03 16:20:14.731 Cannot initialize SFTP protocol. Is the host running a SFTP server?
* 2011-01-03 16:20:14.731 (Exception) Error decoding SFTP packet (111, 4, 111).
. 2011-01-03 16:20:14.731 Closing connection.
. 2011-01-03 16:20:14.731 Sending special code: 12
. 2011-01-03 16:20:14.731 Sent EOF message
* 2011-01-03 16:20:14.740 (ESshFatal) Error decoding SFTP packet (111, 4, 111).
* 2011-01-03 16:20:14.740 Cannot initialize SFTP protocol. Is the host running a SFTP server?