I just created a new instance with Ubuntu (natty) AMI. After logging in with ssh -i key.pem ubuntu@ip user, I did sudo adduser timmy and added timmy to admin, sudo adduser timmy admin. But when I try to login with username ssh -i key.pem timmy@ip it reutrns: Permission denied (publickey).
|
| |||
|
feedback
|
|
To add timmy to the admin group:
(The -a flag will keep timmy in any secondary groups that he's already in.) You should set a password for timmy:
Make sure you can log in with passwords. Edit (If not change it and run And if you want to use that key to log in as timmy (in addition to logging in as ubuntu), you need to copy the public key to timmy's account your local machine (assuming you are on a linux machine):
The fist time, you'll have to enter timmy's password. EDIT: "I did cp /home/ubuntu/.ssh/authorized_keys /home/timmy/.ssh/authorized_keys" Make sure permissions are correct on /home/timmy/.ssh
| |||||||||
feedback
|
|
Copy the | |||||||
feedback
|
|
You must place the public portion of the key in | |||
|
feedback
|