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
ssh [2012/03/29 19:23]
k2patel [Tips & Tricks]
ssh [2021/06/08 20:07] (current)
k2patel [Tips & Tricks]
Line 75: Line 75:
  
 <code bash> <code bash>
 +# Using -E can specify MD5 has which mostly require to compare
 ssh-keygen -lf .ssh/​OLD/​id_rsa.pub.old ssh-keygen -lf .ssh/​OLD/​id_rsa.pub.old
 +</​code>​
 +OR
 +<code bash>
 +ssh-keygen -l -F ip.k2patel.in
 </​code>​ </​code>​
  
Line 86: Line 91:
 <code bash> <code bash>
 VisualHostKey yes VisualHostKey yes
 +</​code>​
 +
 +== 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`"
 +</​code>​
 +
 +== Comment on public key ==
 +You can control comment on public key during generation using following command.
 +
 +<code bash>
 +ssh-keygen -t rsa -C "​k2patel rsync to remote server xyz" -f .ssh/​remote_xyz
 +</​code>​
 +
 +== Temporarily disable ssh key forwarding ==
 +This will disable key forwarding, while login with the key.
 +<code bash>
 +ssh yahoo.com -i .ssh/​id_ed25519 -o IdentitiesOnly=yes -F /dev/null -l ketan
 </​code>​ </​code>​
ssh.1333049017.txt.gz ยท Last modified: 2020/08/10 02:29 (external edit)