I have a ubuntu Natty instance on EC2, and I can SSH into it by
ssh -v -i ec2-keypair ubuntu@ubuntu@XXXX.compute-1.amazonaws.com
But I'd like to set up password less sshing. So I tried these options and nothing is working:
$ ssh-copy-id -i ~/.ssh/id_rsa.pub ubuntu@XXXX.compute-1.amazonaws.com
Permission denied (publickey).
$ ssh-copy-id -i ~/.ssh/ec2-keypair ubuntu@XXXX.compute-1.amazonaws.com
/usr/bin/ssh-copy-id: ERROR: No identities found
$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@XXXX.compute-1.amazonaws.com
Permission denied (publickey).