Tuesday, November 29, 2022
Google search engine
HomeLinux TutorialsHow To Add SSH key to AWS EC2 instance

How To Add SSH key to AWS EC2 instance

Just do:

scp -i ec2-keypair ~/.ssh/id_rsa.pub [email protected]:~/

Then

ssh -i ec2-keypair [email protected]

And when you logged in:

cat id_rsa.pub >> .ssh/authorized_keys
rm id_rsa.pub
exit

Now you can log with

ssh [email protected]

YOU CAN SUPPORT DEVNINJA WITH A CUP OF COFFEE

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online. to search or browse the published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or more ) as a token of appreciation.

Support Us

DevNinja
DevNinja
System & Network Administrator Ninja
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

8 + twelve =

- Advertisment -
Google search engine

Most Popular

Recent Comments