I have the same problem. It is a new PC, just downloaded and installed WinSCP3, and setting it up is no problem. I have other PCs with WinSCP that connect to two hosts just fine, but the new one kepps getting the error: "Cannot initialize SFTP protocol. Is the host running a SFTP server?" So I know the answer is yes. Detail says "Connection has been unexpectedly closed. Server send command exit status 1." I turned on logging and it shows near complete success:
. 2005-11-28 10:01:37.175 Trying to enable encryption...
. 2005-11-28 10:01:37.175 Initialised Blowfish encryption
. 2005-11-28 10:01:37.175 Installing CRC compensation attack detector
. 2005-11-28 10:01:37.175 Waiting for the server to continue with the initialisation
. 2005-11-28 10:01:37.215 Successfully started encryption
. 2005-11-28 10:01:37.215 Sent username "vonhuene"
. 2005-11-28 10:01:37.215 Waiting for the server to continue with the initialisation
. 2005-11-28 10:01:37.235 Session password prompt (
[email protected]'s password: )
. 2005-11-28 10:01:37.235 Using stored password.
. 2005-11-28 10:01:37.235 Sending password with camouflage packets
. 2005-11-28 10:01:37.235 Sent password
. 2005-11-28 10:01:37.235 Waiting for the server to continue with the initialisation
. 2005-11-28 10:01:37.265 Authentication successful
. 2005-11-28 10:01:37.265 Started session
. 2005-11-28 10:01:37.265 --------------------------------------------------------------------------
. 2005-11-28 10:01:37.265 Using SFTP protocol.
. 2005-11-28 10:01:37.265 Doing startup conversation with host.
> 2005-11-28 10:01:37.265 Type: SSH_FXP_INIT, Size: 5, Number: -1
. 2005-11-28 10:01:37.265 Sent 9 bytes
. 2005-11-28 10:01:37.265 There are 0 bytes remaining in the send buffer
. 2005-11-28 10:01:37.265 Waiting for another 4 bytes
! 2005-11-28 10:01:37.295 usage: sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config]
! 2005-11-28 10:01:37.295 [-o ssh_option] [-P sftp_server_path] [-R num_requests]
! 2005-11-28 10:01:37.295 [-S program] [-s subsystem | sftp_server] host
! 2005-11-28 10:01:37.295 sftp [[user@]host[:file [file]]]
! 2005-11-28 10:01:37.295 sftp [[user@]host[:dir[/]]]
! 2005-11-28 10:01:37.295 sftp -b batchfile [user@]host
. 2005-11-28 10:01:37.295 Waiting for another 4 bytes
. 2005-11-28 10:01:37.315 Server sent command exit status 1
. 2005-11-28 10:01:37.315 Server closed network connection
. 2005-11-28 10:01:37.315 Waiting for another 4 bytes
* 2005-11-28 10:01:37.315 (ESshFatal) Cannot initialize SFTP protocol. Is the host running a SFTP server?
* 2005-11-28 10:01:37.315 Connection has been unexpectedly closed. Server sent command exit status 1.