Topic "WinSCP Settings Profile Verses Setting them in .Net Assembly Properties"

Author Message
msdev7807
[View user's profile]

Joined: 2017-03-14
Posts: 4
Location: MyTown
In the WinSCP client, I have a defined connection setup that works fine. I am trying to mirror the same steps through the .NET assembly. I looked at the WinSCP .INI file and the SSH setting, but it seems to be encrypted some how. It doesn't match the ssh- rsa2048 xx: xx: xx: xx: format that I need to properly connect. I have tried .GiveUpSecurityAndAcceptAnySshHostKey = True but that didn't work. In a previous FTP client that we used, you could load the profile directly and it mapped to all of the various FTP object properties. I know I can contact the site owner and request a new SSH key. But since it working correctly in the client, I was hoping to either use the connection profile, or derive the SSH Key... I noticed the Preferred SFTP Protocol Version is set to 6... For example.

Any ideas?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
See https://winscp.net/eng/docs/faq_hostkey#automation

Though you better have the WinSCP GUI generate a complete code template for you:
https://winscp.net/eng/docs/ui_generateurl#code
msdev7807
[View user's profile]

Joined: 2017-03-14
Posts: 4
Location: MyTown
Excellent. Generating the assembly from the Client Application worked perfectly.

Thank you again!
Advertisements

You can post new topics in this forum






Search

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