File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ If you had created a new host key, you'll be asked to verify the new RSA key fin
278
278
279
279
Check the fingerprint on the server from your previous, existing session:
280
280
281
- $ sudo ssh-keygen -lf /etc/ssh/ssh_host_key
281
+ $ ssh-keygen -lf /etc/ssh/ssh_host_key.pub
282
282
4096 19:de:..:fe:58:3a /etc/ssh/ssh_host_key.pub (RSA)
283
283
284
284
If ` ssh ` presents a SHA256 fingerprint:
@@ -288,8 +288,16 @@ If `ssh` presents a SHA256 fingerprint:
288
288
289
289
Check the fingerprint on the server:
290
290
291
+ $ ssh-keygen -E sha256 -lf /etc/ssh/ssh_host_key.pub
292
+ 4096 SHA256:47DEQpj8HBSa+/TImW+6JCeuQfRkm5NMpJWZG3hSuFU no comment (RSA)
293
+
291
294
$ awk '{print $2}' /etc/ssh/ssh_host_key.pub | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64
292
295
47DEQpj8HBSa+/TImW+6JCeuQfRkm5NMpJWZG3hSuFU
296
+
297
+ To get the MD5 hash of the key fingerprint:
298
+
299
+ $ ssh-keygen -E md5 -lf /etc/ssh/ssh_host_key.pub
300
+ 4096 19:de:..:fe:58:3a /etc/ssh/ssh_host_key.pub (RSA)
293
301
294
302
Start ` tmux ` or reconnect to an existing session.
295
303
You can’t perform that action at this time.
0 commit comments