SSH

From Things and Stuff Wiki
Revision as of 17:26, 26 February 2013 by Milk (talk | contribs) (→‎Rsync)
Jump to navigation Jump to search


General

SSH keys

~/.ssh/identity and ~/.ssh/identity.pub
  DSA key (old)
~/.ssh/id_rsa and ~/.ssh/id_rsa.pub
  RSA key

Basic key setup:

ssh-keygen -t rsa
ssh-copy-id [-i [identity_file]] [user@]remote
  default identity_file is ~/.ssh/id_rsa.pub
ssh -i ~/.ssh/id_rsa_example.org

~/.ssh/config

Host example.org
 IdentityFile ~/.ssh/id_rsa_example.org
VisualHostKey=yes

SCP

  • scp -P [port] file.txt user@remotehose:~/file.txt

When scp on remote is initiated, it done so with -t flag, which is undocumented but might be required for precise command persmission configuration.

SSHFS

Security

X11 forwarding

Tools

To sort