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