LeBauer:Software/Misc: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
(New page: ==SSH== located in ~/.ssh/config ===public/private keys=== Setting up public and private keys allows logging in without use of a password. This simplifies login, and it also enables proce...)
(No difference)

Revision as of 08:50, 8 July 2010

SSH

located in ~/.ssh/config

public/private keys

Setting up public and private keys allows logging in without use of a password. This simplifies login, and it also enables processes to be automated, for example rsync, or sending commands from one server to another. This is actually very simple to do.

mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
ssh-copy-id <username>@<host>

more information about setting up public/private key pairs

ssh config file:

host cl
hostname cluster.illinois.edu
user dlebauer

host is an alias to shorten logging in, e.g. by allowing

ssh cl

instead of

ssh cluster.illinois.edu 

this also works in emacs