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