generate public key from private github code example
Example 1: github private key
$ ssh-keygen -t rsa -b 4096 -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