1 Answer
- Newest
- Most votes
- Most comments
0
Hi , I understand you are trying to setup an SSH key before creating an instance and you are getting an error.Please correct me if I misunderstood.
I replicated this on my end following AWS documentation, using the following command:
aws lightsail create-key-pair \
--key-pair-name MyPersonalKeyPair
and I got a similar error. However, when I removed the backslash and make the one line command. I was able to create a new key-pair. This is how I did it:
- Installed and configured AWS CLI.
- I then created my SSH key with the following command on my powershell
aws lightsail create-key-pair --key-pair-name MyPersonalKeyPair > Karabo.json
You can verify that your key was created by going to the Lightsail console then click accounts. Go to SSH keys, your newly created key-pair will be on the list.
I hope this will be helpful!
answered 2 years ago
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 months ago
Have you seen this document on configuring PuTTY to connect via SSH? https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-how-to-set-up-putty-to-connect-using-ssh