1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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!
respondido hace 2 años
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 3 meses
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