ssh-keygen

ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub

https://serverfault.com/questions/52285/create-a-public-ssh-key-from-the-private-key