Generating public/private rsa key pair. Enter file in which to save the key code example
Example 1: linux create public key
ssh-keygen -t rsa -C "[email protected]"
Example 2: setting up the ssh keys
scp $HOME/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys