I purchased the great Agile Web Development with Rails book and I am reading the Chapter 16: Deployment and Production. In that chapter there is a part (page 233) where it says how to set SSH keys:
test -e ~/.ssh/id_ssh.pub || ssh-keygen -t dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorizedkeys2
but there is a very "minimal" text\description on how to "ssh'ing", so I did not understand some things. Where I should run the above commands: on the local or on the remote machine? And then, what I should to do to make it work?
P.S.: If I understood those keys serves me to not enter anymore password using the Capistrano gem. Is it them purposes?