how to access ssh with public key code example Example: get public ssh key ssh-keygen cat ~/.ssh/id_rsa.pub