What is the syntax for storing a host key in the INI file?

Advertisement

stuartjmcc
Joined:
Posts:
2
Location:
UK

What is the syntax for storing a host key in the INI file?

Hi,

I'm using the .NET DLL as part of an application which access servers via SFTP.

When the app is directed to a server I can get the Host Key Fingerprint value. I wish to cache this value in the WinSCP.INI file so the next connection doesn't need to have the key specified.

Can someone give me an example of the INI file syntax for caching the key please?

I've checked the documentation and the forums and know it can be done, just not the specifics of how it's done :-(

Thanks

Reply with quote

Advertisement

stuartjmcc
Joined:
Posts:
2
Location:
UK

....I've got it now thanks everyone.

I discovered the export settings feature and was able to create an ini file.

The syntax I wanted was
[SshHostKeys]
rsa2@22:xxxx.xxxx.xxxx.xxxx=0x23,0xbd7046938ec......

Reply with quote

Howardliu35
Guest

Using ini file with .NET version

Hello,
DO you mind telling me how do you use the .ini file in winscpnet environment? I am trying to get it working with powershell.

stuartjmcc wrote:

....I've got it now thanks everyone.

I discovered the export settings feature and was able to create an ini file.

The syntax I wanted was
[SshHostKeys]
rsa2@22:xxxx.xxxx.xxxx.xxxx=0x23,0xbd7046938ec......

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Using ini file with .NET version

Howardliu35 wrote:

DO you mind telling me how do you use the .ini file in winscpnet environment? I am trying to get it working with powershell.
What do you need this for?

Reply with quote

Advertisement

You can post new topics in this forum