From b49de9b90e301d01d4fe78f1d28c3cc8b0fb06a9 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 2 May 2020 02:05:41 +0100 Subject: [PATCH] ssh-keyscan: add known_hosts example (#3980) --- pages/common/ssh-keyscan.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/ssh-keyscan.md b/pages/common/ssh-keyscan.md index e3535ede3..15f666c72 100644 --- a/pages/common/ssh-keyscan.md +++ b/pages/common/ssh-keyscan.md @@ -13,3 +13,7 @@ - Retrieve certain types of public ssh keys of a remote host: `ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{host}}` + +- Manually update the ssh known_hosts file with the fingerprint of a given host: + +`ssh-keyscan -H {{host}} >> ~/.ssh/known_hosts`