faq_hostkey » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
| 2019-06-03 | 2019-06-04 | ||
| fingerprint alg in openssh (martin) | display all keys (martin) | ||
| Line 19: | Line 19: | ||
| If you already have the host key cached in the PuTTY SSH client, you can import a PuTTY stored session to WinSCP, including the cached host keys. Make sure the //Import cached host keys for checked sites// option is checked when [[ui_import|importing the sessions]]. | If you already have the host key cached in the PuTTY SSH client, you can import a PuTTY stored session to WinSCP, including the cached host keys. Make sure the //Import cached host keys for checked sites// option is checked when [[ui_import|importing the sessions]]. | ||
| - | You can also have the fingerprint displayed in an %%SSH%% terminal using ''[[https://man.openbsd.org/ssh-keygen|ssh-keygen]]'' command (on *nix servers using OpenSSH server): | + | You can also have the fingerprint displayed in an %%SSH%% terminal using ''[[https://man.openbsd.org/ssh-keygen|ssh-keygen]]'' command (on *nix servers that use OpenSSH server). For example: |
| <code> | <code> | ||
| ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key | ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key | ||
| - | ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key | ||
| - | ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key | ||
| </code> | </code> | ||
| + | |||
| + | To display all available host keys, you can use: | ||
| + | |||
| + | <code bash>for f in /etc/ssh/ssh_host_*_key; do ssh-keygen -l -f "$f"; done</code> | ||
| OpenSSH 6.8 and newer shows SHA-256 fingerprint by default. Older versions use MD5 fingerprint. | OpenSSH 6.8 and newer shows SHA-256 fingerprint by default. Older versions use MD5 fingerprint. | ||