SSH
Jump to navigation
Jump to search
General
Server/client
Keys
Default file name format
~/.ssh/identity and ~/.ssh/identity.pub DSA key (old) ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub RSA key
ssh-keygen create a key. rsa is default.
ssh-copy-id [-i [identity_file]] [user@]remote default identity_file is ~/.ssh/id_rsa.pub
Management and config
ssh -i ~/.ssh/id_rsa_example.org
~/.ssh/config
Host example.org IdentityFile ~/.ssh/id_rsa_example.org
- http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-config-file/
- SSH Can Do That? Productivity Tips for Working with Remote Servers
- Tips for Remote Unix Work (SSH, screen, and VNC) [1]
- http://blog.hypergeometric.com/2012/02/22/ssh-dos-and-donts/
- http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
- http://opensourcehacker.com/2012/10/24/ssh-key-and-passwordless-login-basics-for-developers/
- http://vimeo.com/54505525
- HOWTO: set up ssh keys
- Using Rsync and SSH - Keys, Validating, and Automation
- http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys
randomart
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.