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 官方已更新 3 个月前
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