SSH

From Things and Stuff Wiki
Revision as of 03:10, 1 September 2012 by Milk (talk | contribs) (→‎Rsync)
Jump to navigation Jump to search


General

SSH keys

Basic key setup:

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

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

Rsync

Sync folders/files, only transfers changes.

--rsh='ssh -p8023'
  flag for non-standard ssh port

Security

X11 forwarding

Tools

To sort