- Copy both id_rsa and id_rsa.pub from ~/.ssh/ to a USB drive. Identify the private key by executing the following command.
gpg --list-secret-keys --keyid-format LONG
- It will show something similar to this.
sec 4096R/3AA5C34371567BD2 2016-03-10 [expires: 2017-03-10]