Dipendra Dangal
Dipendra Dangal

Reputation: 1183

Unable to connect to EC2 server with my MacBook

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

Upvotes: 15

Views: 10381

Answers (2)

Kyle Venn
Kyle Venn

Reputation: 8038

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:

ssh -i "keypair.cer" -o PubkeyAcceptedKeyTypes=+ssh-rsa ec2-user@ip

Note: the ssh call will accept both .cer and .pem filetypes.

Upvotes: 36

Alejandro
Alejandro

Reputation: 826

edit or create the file ~/.ssh/config and add the following content:

Host *
  PubkeyAcceptedKeyTypes=+ssh-dss

After that, try again.

Upvotes: 18

Related Questions