SSH - Known Hosts File

1 - About

Known Hosts File is a client file that list all known remote host.

3 - Format

known_hosts
hostname algo public_key
hostname,ip algo public_key

where:

4 - Example

192.168.1.20 ecdsa-sha2-nistp256 public_key
gerardnico.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABA............

5 - Location

home\.ssh\known_hosts

5.1 - Windows

Ie:

  • User: C:\Users\${login}\.ssh\known_hosts
  • System: C:\Windows\System32\config\systemprofile\.ssh\known_hosts

5.2 - Linux

  • User scope ~/.ssh/known_hosts
  • System scope /etc/ssh/known_hosts

6 - Implementation

ssh/known_hosts.txt ยท Last modified: 2018/05/30 16:04 by gerardnico