set ssh access by key code example Example: setting up the ssh keys scp $HOME/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys