GETTING CLIENT MACHINE TO CACHE HOSTKEY THROUGH SCRIPTING

Advertisement

slo4bru
Joined:
Posts:
1

GETTING CLIENT MACHINE TO CACHE HOSTKEY THROUGH SCRIPTING

Hello:

I have a winscp process that uses C# script on client side to attach to an SFTP server and send through files. All is working well except I have to send host key through by script on every logon. Is there a way to cache the hostkey to the clients machine on the first logon? There is no user interaction during this process BTW.

Thanks!

Reply with quote

Advertisement

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

Re: GETTING CLIENT MACHINE TO CACHE HOSTKEY THROUGH SCRIPTING

You can store the host key to the cache in registry before runing the script. Or you can use INI file instead.

Reply with quote

Advertisement

You can post new topics in this forum