User Tools

Site Tools


ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
ssh [2012/03/29 19:14]
k2patel [Tips & Tricks]
ssh [2012/03/29 19:23]
k2patel [Tips & Tricks]
Line 72: Line 72:
  
 == Show fingerprint of key == == Show fingerprint of key ==
 +<note important>​You can use -v to print random ASCII Image</​note>​
 +
 <code bash> <code bash>
 ssh-keygen -lf .ssh/​OLD/​id_rsa.pub.old ssh-keygen -lf .ssh/​OLD/​id_rsa.pub.old
 </​code>​ </​code>​
  
 +It will print for all public key in single file if there is multiple key in it.\\
 +Also, it is usefull in identifying MITM Attack by comparing against your known host.\\
  
 +== Print fingerprint on login ==
 +You can enabled printing of server key by setting following variable.\\
 +<note tip>you can setup on any of following file /​etc/​ssh/​ssh_config OR .ssh/​config</​note>​
 +<code bash>
 +VisualHostKey yes
 +</​code>​
ssh.txt ยท Last modified: 2021/06/08 20:07 by k2patel