Topic "Hostkey wasn't verified!"

Author Message
getsreenuk
[View user's profile]

Joined: 2013-08-29
Posts: 2
Location: HYDERABAD
Hello All,

I'm facing an error "hostkey wasn't verified" when I run from C# application. But when I double click on the winSCP.exe it works fine. Please help how to resolve the issue.


Thanks in advance

KS
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Can you provide more details on "when I run from C# application"? Are you using WinSCP .NET assembly or running WinSCP executable directly?

Some of these may help you:
https://winscp.net/eng/docs/faq_hostkey
https://winscp.net/eng/docs/scripting#hostkey
https://winscp.net/eng/docs/scripting#configuration
https://winscp.net/eng/docs/faq_scheduler
_________________
Martin Prikryl
getsreenuk
[View user's profile]

Joined: 2013-08-29
Posts: 2
Location: HYDERABAD
i'm using the winSCP.DLL and their API method calls. The examples given in the winSCP website.

Thanks & Regards
Srinivas K

prikryl wrote:
Can you provide more details on "when I run from C# application"? Are you using WinSCP .NET assembly or running WinSCP executable directly?

Some of these may help you:
https://winscp.net/eng/docs/faq_hostkey
https://winscp.net/eng/docs/scripting#hostkey
https://winscp.net/eng/docs/scripting#configuration
https://winscp.net/eng/docs/faq_scheduler
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Can you show your code and attach a relevant session log file?
_________________
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