Sunday, December 18, 2011

Recovering Public OpenSSH key

If you deleted or lost your public OpenSSH key; you can regenerating using the following

ssh-keygen -t rsa -y
ssh-keygen -t dsa -y
ssh-keygen -t rsa -y > ~/.ssh/id_rsa.pub
ssh-copy-id -i ~/.ssh/id_rsa.pub yourusername@remotebox

No comments:

Post a Comment