Hostkey wasn't verified!

Advertisement

getsreenuk
Joined:
Posts:
2
Location:
HYDERABAD

Hostkey wasn't verified!

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,317
Location:
Prague, Czechia

Re: Hostkey wasn't verified!

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

Reply with quote

getsreenuk
Joined:
Posts:
2
Location:
HYDERABAD

Re: Hostkey wasn't verified!

i'm using the winSCP.DLL and their API method calls. The examples given in the winSCP website.

Thanks & Regards
Srinivas K

martin 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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,317
Location:
Prague, Czechia

Re: Hostkey wasn't verified!

Can you show your code and attach a relevant session log file?
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum