Putty は Windows 上の known_hosts 情報をどこに保存しますか?

Putty は Windows 上の known_hosts 情報をどこに保存しますか?

How do I tell if Putty already knows about and has cached credentials for specific ssh servers?

Another way to ask this question is what is the Windows/Putty equivalent of a unix/ssh known_hosts file?

答え1

Putty は既知のホストをレジストリ キーの下に保存します: HKEY_CURRENT_USER\SoftWare\SimonTatham\PuTTY\SshHostKeys

答え2

So in windows known_hosts for PuTTY is SshHostKeys.

HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeysその場所に保存されているもの。その場所に到達するには、Registry Editor supposed to be used.

  • スタートへ戻る - 探すregedit
  • then you will see all the directories on the left pane under computer
  • この画像のようにHKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys location - 位置
  • then you can modify like you wish 既知のホストオプション
  • 必要に応じて、 PowerShellでSshHostKeysこのコマンドを使用してファイルの内容を確認できます。REG QUERY HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys

そしてキャッシュはクリアされます。その特定のエントリはすべて新しくなります。

答え3

前述したように、Putty は SSH ホスト キーをレジストリに保存します[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys]

異なるユーザー/マシン間でSSHホストキーをコピーする方法については、こちらに書きました。http://isbyr.com/copy-putty-ssh-hosts-keys-different-usersmachines-windows/

関連情報