ssh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ssh [2012/03/29 19:22] – [Tips & Tricks] k2patel | ssh [2021/06/08 20:07] (current) – [Tips & Tricks] k2patel | ||
---|---|---|---|
Line 75: | Line 75: | ||
<code bash> | <code bash> | ||
+ | # Using -E can specify MD5 has which mostly require to compare | ||
ssh-keygen -lf .ssh/ | ssh-keygen -lf .ssh/ | ||
+ | </ | ||
+ | OR | ||
+ | <code bash> | ||
+ | ssh-keygen -l -F ip.k2patel.in | ||
</ | </ | ||
Line 83: | Line 88: | ||
== Print fingerprint on login == | == Print fingerprint on login == | ||
You can enabled printing of server key by setting following variable.\\ | You can enabled printing of server key by setting following variable.\\ | ||
- | <note tip>you can setup on any of following file ssh_config | + | <note tip>you can setup on any of following file /etc/ssh/ssh_config |
<code bash> | <code bash> | ||
VisualHostKey yes | VisualHostKey yes | ||
+ | </ | ||
+ | |||
+ | == Run Command from file Remotely == | ||
+ | Place all your command in xyz file. And run as follows | ||
+ | <code bash> | ||
+ | ssh -l k2patel nice.k2patel.in "`cat xzy`" | ||
+ | </ | ||
+ | |||
+ | == Comment on public key == | ||
+ | You can control comment on public key during generation using following command. | ||
+ | |||
+ | <code bash> | ||
+ | ssh-keygen -t rsa -C " | ||
+ | </ | ||
+ | |||
+ | == Temporarily disable ssh key forwarding == | ||
+ | This will disable key forwarding, while login with the key. | ||
+ | <code bash> | ||
+ | ssh yahoo.com -i .ssh/ | ||
</ | </ |
ssh.1333048956.txt.gz · Last modified: 2020/08/10 02:29 (external edit)