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:22]
k2patel [Tips & Tricks]
ssh [2012/03/29 19:34]
k2patel [Tips & Tricks]
Line 83: Line 83:
 == 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 ​for .ssh/​config</​note>​+<note tip>you can setup on any of following file /etc/ssh/ssh_config ​OR .ssh/​config</​note>​
 <code bash> <code bash>
 VisualHostKey yes VisualHostKey yes
 </​code>​ </​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>​
 +
 +
ssh.txt ยท Last modified: 2021/06/08 20:07 by k2patel