Wednesday, December 21, 2011

OpenSSH key Regeneration

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 user@remotebox

No comments:

Post a Comment