Forum archive
LAMP EC2 (Debian) - Adding additional users
Hi all,
I'm using the LAMP stack provided for AWS, which is on Debian 6. By default, you ssh into the server with root access. I find this a bit dangerous, as it's possible to make accidental mistakes when running different commands. I would like to add another user that doesn't have root access by default. However, since this is an EC2 server running on AWS, this isn't exactly straightforward because AWS only allows one key per instance.
That said, I was wondering if there was some guide to help me get around this. Preferrably, I would like to add users with their own keys. If not this, then I at least want to log in with different users using the same key. I tried some of the guides I found searching, but none of them seem to apply perfectly to this situation.
Any help is much appreciated! Thanks!
Firstly, sorry for such a slow response...
Secondly I suggest that you use the newer TKL version 13 (which is based on Debian 7/Wheezy).
Next, TBH I am quite unfamiliar with AWS but from what I know of Linux, it shouldn't matter how many keys AWS allow you to register. AFAIK the ones registered with AWS are just for automatic installation in your guest(s). There is nothing stopping you from manually adding how ever many keys you want to each individual server... (This is probably a good overview/tutorial although you could probably skip straight to page 2).
You'll want to create the users first and if you don't want to use root at all then you'll need to install sudo too and create some sort of admin user (although IMO that isn't much different to using root really...)