Add a second host key to saved site

Advertisement

david_carolan
Joined:
Posts:
1

Add a second host key to saved site

I help admin several servers that have saved sites in WinSCP (I know, I know, I can't go back and fix a decade of custom scripting). I want to add a new host key to a saved site ahead of that servers migration. Any way to do it easily?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,081
Location:
Prague, Czechia

Re: Add a second host key to saved site

Is this for WinSCP GUI (or some WinSCP-based script?)
For GUI, you can add the hostkey to this registry key:
HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\SshHostKeys

Reply with quote

Guest

Re: Add a second host key to saved site

martin wrote:

Is this for WinSCP GUI (or some WinSCP-based script?)
For GUI, you can add the hostkey to this registry key:
HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\SshHostKeys

Thank you Martin! I saw this in an older comment and was worried that
\WinSCP 2\
might not still be valid. This is a huge help until I can upgrade the scripting.

Reply with quote

Advertisement

You can post new topics in this forum