I'm trying to add a deploy user to a EC2 instance to work with capistrano. I've been able to add passwordless entry for user ubuntu, but it's not working with "deploy". I'm setting up this user as follows:
adduser --system --home /home/deploy --shell /bin/bash --ingroup nogroup deploy chmod u+w /etc/sudoers echo "deploy ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers chmod u-w /etc/sudoers
I then copy the authorized keys
cp /root/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys
and restart ssh
But then when I try to sign in from my local machine like:
ssh -v -i ec2-keypair email@example.com
I still get a request for a password. Any ideas?