Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change what keypair my LightSail instance uses?

At...

https://lightsail.aws.amazon.com/ls/webapp/instances/[my instance name]/connect

...I see...

"You configured this instance to use the somekeypairname key pair."

How do I change that? I have (just a minute ago) deleted that key pair in the hopes that the instance would start using the default key pair. Subsequently, I also rebooted the instance. Where in the GUI do I find where to change the key pair for the instance?

like image 480
arnoldbird Avatar asked Dec 14 '16 14:12

arnoldbird


People also ask

How do you create a key pair in Lightsail?

You can download the private key of a default key pair at any time from the Account page on the Lightsail console. You can have up to one default key pair in each . Create key pair (Linux and Unix instances) – You can use the Lightsail console to create a new custom key pair to use with your instance.


1 Answers

You can adjust ~/.ssh/authorized_keys via Amazon Web SSH client (which can be found right in the Lightsail dashboard)

like image 116
Olegykz Avatar answered Oct 05 '22 05:10

Olegykz