Originally Posted by ahlr
I need to migrate my keys to another machine and make a secure backup. What better way to do this?
You may have to be more specific.
ssh configuration (which is used to authenticate remote shell connections, both incoming and outgoing) is stored in $HOME/.ssh/
gpg configuration (which is used to encrypt, decrypt, sign, and verify files) is stored in $HOME/.gnupg/