Where PuTTY Stores SSH Host Key

  • by
PuTTY Security Alert - Save or Replace Server Host RSA Key

PuTTY Security Alert

I guess you may have seen this alert like the above featured image while you were connecting to a server for the first time over SSH using PuTTY.

Once you confirmed the key, it saves the new key or replaces the old key for the host in the repository. If you want to add a new key, delete or replace an old key manually, you should know where to find PuTTY key repository.

Regedit

In Windows platform, the PuTTY repository is in Windows Registry (regedit). Its hierarchy is as:

  • HKEY_CURRENT_USER
  • Software
  • SimonTatham
  • PuTTY
  • SshHostKeys

In other words, the full path is HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys.

PuTTY - regedit server host RSA key

PuTTY - regedit server host RSA key

The above screenshot should be a good navigation for finding PuTTY repository.

Leave a Reply

Your email address will not be published. Required fields are marked *