
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/