Use SFTP version 4.

Advertisement

starf
Joined:
Posts:
5

Use SFTP version 4.

WinSCP fails to connect to an SFTP server using version 5 of SFTP protocol.
From the UI, I'm able to downgrade to version 4, and then, the connection succesds.

How can I do the same thing with the COM interface ?


Thanks.

[EDIT]
I guess I found the trick.
SessionOptions.AddRawSettings "SFTPMaxVersion", "4"

[EDIT]
The trick works.
Notice that you can't change a previously set raw setting, you need a new SessionOptions object.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Ok, your server disconnects, without any explanation, just after it receives the INIT message indicating that WinSCP supports SFTP v5. Do you have an access to server's log? Is there anything interesting indicating why it disconnects?

Reply with quote

starf
Joined:
Posts:
5

Sorry, I have absolutly no access to that server logs.

[Edit]
I grabbed that infos from a successfull cx, seems to be some java stuff, stucked at sftp version 3 :
Session protocol = SSH-2
SSH implementation = Maverick_SSHD
Encryption algorithm = aes
Compression = No
File transfer protocol = SFTP-3
------------------------------------------------------------
------------------------------------------------------------
Can change permissions = Yes
Can change owner/group = Yes
Can execute arbitrary command = No
Can create symlink/hardlink = Yes/No
Can lookup user groups = No
Can duplicate remote files = No
Can check available space = No
Can calculate file checksum = No
Native text (ASCII) mode transfers = No
------------------------------------------------------------
Additional information
The server does not support any SFTP extension.

Reply with quote

Advertisement

You can post new topics in this forum