5

Is there a way in WinSCP to configure a known_hosts file with key fingerprints so as to not be queried by WinSCP when you want to connect?

0

1 Answer 1

7

WinSCP does not use known_hosts file. Like PuTTY, it stores known host keys into Windows registry (or optionally an INI file)

[HKEY_CURRENT_USER\SOFTWARE\Martin Prikryl\WinSCP 2\SshHostKeys]

The format of the keys is different to that of known_hosts.

If you have the host key cached on another machine, you can copy it over to the new machine.


But you can import the host keys from the known_hosts file.


Another way is to have WinSCP save new site with a known fingerprint of the host key, like:

winscp.exe sftp://username;fingerprint=ssh-rsa-xxxxxxxxxxx...=@example.com/;save

See https://winscp.net/eng/docs/integration_url#save

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.