2

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.

2 Answers2

1

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.

Dmitry Mukhin
  • 5,644
  • 3
  • 25
  • 31
  • i am not good at ssh topics, please let me know i understood wright. You mean He should create his own ssh key on his local machine and give his public key to me to add on server. if it's so, is there any practical tool or other things to do that? or i should find how to create ssh key document? thanks. – user3741090 Jun 15 '14 at 11:50
  • Google is your friend : https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=create%20ssh%20key&safe=off – Sébastien Stormacq Jun 15 '14 at 15:47
0

There is a solution here, new user and a new key/pair for that user can be created on server machine. new user can access to server with the new key.

Another anwers about same topic is here

Community
  • 1
  • 1
  • you should not create the key on server. private key should be private and created by your employee (chances are he already has one). – Dmitry Mukhin Jun 16 '14 at 09:16