generate a private key from a public key code example
Example 1: linux create public key
ssh-keygen -t rsa -C "[email protected]"
Example 2: create public key from private
chmod 400 ~/.ssh/id_rsa
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub