1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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!
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 3년 전
- AWS 공식업데이트됨 3년 전
- AWS 공식업데이트됨 2년 전
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