So, you've created a key. Now what?
In order to be able to use it to connect to your servers, you will need to make it so that the server will know about your key and accept it.
The most common use case is OpenSSH, and that's the one we are going to cover here.
Adding a key to OpenSSH
You may be acquainted to adding keys to your server, but the file that Forwardie provides isn't ready for import as-is. It's easy to convert it, though!
- Save the PEM file on your server. The name doesn't matter, but we're going to call it pub.pem for this example.
- Run the following command:
ssh-keygen -i -m PKCS8 -f pub.pem >> ~/.ssh/authorized_keys
- There's no step 3 - you're done!