I created a user called grader
to my instance and gave it sudo permission, also I switched the password in /etc/ssh/sshd_config
to be off.
I generated a key pair in my local machine and added the public key to the instance. When I try to access the instance using the DEFAULT user provided by Amazon AWS and my generated keys it works
ssh -i "udacityLinux" ubuntu@ec2-18-218-9-117.us-east-2.compute.amazonaws.com
but when I try the same using the grader
user I get this error:
ssh -i "udacityLinux" grader@ec2-18-218-9-117.us-east-2.compute.amazonaws.com
grader@ec2-18-218-9-117.us-east-2.compute.amazonaws.com: Permission denied (publickey).
How can I fix this to be able to login using my grader
user?