Public key authentication with SSH

The following steps show how to set up public key authentication with SSH

1. Generate public/private key on your system

ssh-keygen -t rsa

2. Copy your public key to the remote server

scp ~/.ssh/id_rsa.pub xyz.com:~/.ssh/authorized_keys