Search

What is SSH host key

In SSH, a key pair, called as host keys is used to identify a computer. The purpose of SSH key pair is for authenticating computers. Host keys are unique and generated using asymmetric encryption algorithms like RSA, DSA, or ECDSA algorithms. Public host keys distributed to SSH clients, and private keys are stored on SSH servers.

When an SSH client connects to an SSH server, the host key of the SSH server is stored in a file, called as known host keys.

In Unix/Linux OpenSSH, the collection of known host keys is stored in /etc/ssh/known_hosts and in .ssh/known_hosts in each user's home directory. PuTTY for Windows stores the known host keys in Windows registry HKEY_CURRENT_USER\SoftWare\SimonTatham\PuTTY\SshHostKeys.

OpenSSH client for Windows stores the known hosts file within %USERPROFILE%\.ssh folder. To open %USERPROFILE% folder, type "explorer %USERPROFILE%" in your command prompt, PowerShell or Run box, and hit Enter key (without double quotes).

Related Tutorials
What is SSH (Secure Shell)
History of SSH protocol
What SSH can do
Versions of SSH Protocol
RFCs related with SSH protocol
SSH Protocols and Products
SSH Client and SSH Server
SSH Components
SSH Packet Format
SSH Encryption Algorithms
Hash values, MAC and HMAC in SSH
How SSH works
How to install OpenSSH server in Windows Server
How to start OpenSSH Service in Windows Server
How to install OpenSSH Server in Windows Server using PowerShell
How to configure SSH server in Cisco Router
PuTTY login to Cisco Router using SSH protocol
How to install OpenSSH client in Windows 10
Port forwarding using SSH
How to configure SSH port forwarding