Home > other >  [email protected]: Permission denied (publickey)
[email protected]: Permission denied (publickey)

Time:01-19

I'm trying to connect to master cluster in kubernetes as ssh -i ~/.ssh/id_rsa [email protected] It throws error as [email protected]: Permission denied (publickey). I am using kops as a deployment utility. Can someone help here please

CodePudding user response:

Can you change the username from ubuntu to ec2-user? I think the default user of EKS nodes is ec2-user

CodePudding user response:

To connect to EC2 via SSH with public key, you need the corresponding private key configured in the authorized_keys file in the root volume. When kops provisioned the EC2, does it provide you which keys to use?

If not, if the EC2 is using a newer AMI, you should be able to alternatively connect via EC2 instance connect.

Else, you need to manually modify the authorized_keys file.

  •  Tags:  
  • Related