Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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?
Howardliu35

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......
stuartjmcc

....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......
stuartjmcc

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