Passwordless SSH

local$ ssh-keygen -t dsa
local$ ssh-copy-id [email protected]
local$ `ssh-agent`
local$ ssh-add
local$ ssh [email protected]

OR

local$ ssh-keygen -t dsa
local$ scp ~/.ssh/id_dsa.pub [email protected]:~/
local$ ssh [email protected]
remote$ cat ~/id_dsa.pub >> ~/.ssh/authorized_keys
remote$ chmod 644 ~/.ssh/authorized_keys
remote$ rm ~/id_dsa.pub
remote$ exit
local$ ssh [email protected]