We can upload our key pair's public key to EC2 as follows:
- Go to the EC2 dashboard.
- Click on Key Pairs from the left sidebar:
We should be able to see the keys that we have already created.
- Click on Import Key Pair from the top of the page.
- On the Import Key Pair page, click Choose file and select our public key:
- Remove -----BEGIN PUBLIC KEY----- from the beginning of the key and -----END PUBLIC KEY----- from the end of the key inside the textbox for Public key contents. You can remove any extra space from the ...