Tuesday, March 15, 2022

[FIXED] How to grant another user for connecting an AMI on AWS to work on it without giving .pem file

Issue

I have launched a linux server on AWS, there is another developer and i want him to work on the server, but i don't want to give .pem file to him, what should i do?

he should be able to connect to server via a console and deploy files and configure on http server. when the jobs done i want to take his priviliges back.

Thanks for your interest.


Solution

You should add his public ssh key to /home/ubuntu/.ssh/authorized_keys and that's basically it.

He will be able to login via SSH using corresponding private key.

This have nothing to do with AMI though.



Answered By - Dmitry Mukhin

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.