Some useful commands in “linux” to generate a public key from a private one.
ssh-keygen -f ~/id_rsa -y > ~/id_rsa.pub
if you receive some warnings regarding users permissions about the private key file, the easiest way is to run the following command
chmod 700 id_rsa