I'd like to add a user to my AWS instance and ssh in as that user with the existing keypair.
Right now I can log into my AWS instance as root:
ssh -i ~/path/mysshkeypair.pem root@EC2-my###-###.compute-1.amazonaws.com
Logged in as root, I created another user and gave it a home directory. I can type "su otheruser" and navigate around. But when I exit back to my machine and try:
ssh -i ~/path/mysshkeypair.pem otheruser@EC2-my###-###.compute-1.amazonaws.com
I get: Permission denied (publickey).
What steps do I need to follow to be able to log in as otheruser?
My machine is a Mac and the instance is an Ubuntu machine.