Topic "Change SFTP protocol via .Net assembly"

Author Message
Atit
[View user's profile]

Joined: 2015-04-03
Posts: 3
Location: Miami, FL
Hi,

Our client's SFTP server has 'SFTP protocol version' 3 and we are using WinSCP 5.7

How can we set protocol version to 3 via .Net assembly (C# class).

Currently due to protocol version mismatch, we are getting "SSE2636 Command rejected due to sftp proxy policy settings: SSH_FXP_INIT"

Please help as we are not very familiar with SFTP/WinSCP.

Thanks,
Atit Shah
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
See http://winscp.net/eng/docs/rawsettings (the SFTPMaxVersion).
Atit
[View user's profile]

Joined: 2015-04-03
Posts: 3
Location: Miami, FL
Thanks prikryl.

But when we use the code as example shown in WinSCP .net assembly. We are unable to see 'SFTPMaxVersion' property or anything listed on http://winscp.net/eng/docs/rawsettings.

Is there separate class in .Net we should use?
Atit
[View user's profile]

Joined: 2015-04-03
Posts: 3
Location: Miami, FL
Sorry, got it... thanks

THis is how, right? session.AddRawSettings
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Atit wrote:
THis is how, right? session.AddRawSettings

It's sessionOptions.AddRawSettings. The example was wrong. It's fixed now.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License