skip to Main Content

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


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

    Host *
      PubkeyAcceptedKeyTypes=+ssh-dss
    

    After that, try again.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search