add a public key for a user to ssh code example Example: setting up the ssh keys scp $HOME/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys