public key and private key example Example: create public key from private Click to copychmod 400 ~/.ssh/id_rsa ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub