|
|
|
|
|
by Borealid
38 days ago
|
|
SSH has *ANOTHER* built-in solution, in the form of the SSHFP DNS record. If the DNS record for the host has an SSHFP (SSH FingerPrint) record, SSH will compare it to the retrieved public key(s) and refuse the connection if there is a mismatch. It can be configured to require DNSSec for this, or to only reject if it gets a secure rejection (to prevent DoS). It works perfectly, has no notable down sides (just add a DNS record when you generate the host's SSH key), and has been around for many years. |
|
Just means an attacker also needs to mitm DNS if you MITM the host. Not trivial, but depending on setup might not be harder.