I am unable to connect to EC2 (CentOs) from my MacBook. When I connect it from ubuntu machine, it will be connected. Currently, I got the following the following error:
ec2 ssh sign_and_send_pubkey: no mutual signature supported Account locked due to 290 failed logins
How can I solve the problem?
I have tried the following command:
ssh -i key.pem ec2-user@ip
2
Answers
edit or create the file
~/.ssh/config
and add the following content:After that, try again.
I was locked out and couldn’t access the machine to enter in the suggested answer’s change to ssh config.
I added the following argument to the
ssh
call-o PubkeyAcceptedKeyTypes=+ssh-rsa
and it worked.Example:
Note: the
ssh
call will accept both.cer
and.pem
filetypes.