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

Author Message
stuartjmcc
[View user's profile]

Joined: 2013-01-31
Posts: 2
Location: UK
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 Sad

Thanks
Advertisements
stuartjmcc
[View user's profile]

Joined: 2013-01-31
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......
Howardliu35

Guest


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......
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
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?
_________________
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