On an Ubuntu AWS instance I want to ssh
in as "thufir" with sudo privileges. Create user thufir with sudo adduser thufir
and then adduser thufir sudo
from the "ubuntu" user? Simply add my public key to ~/.ssh/authorized_keys
and then I'll be able to ssh as "thufir" to the remote instance?
Can I use my regular public key to login as "ubuntu" on AWS, or would that require the AWS generated key?
I'd like to be able to ssh
as "ubuntu" using my own key -- is that possible? There's no password with the "ubuntu" user, strictly key login.
authorized_keys
file - you just have to specify the username to connect as