Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 262
Deependra Dangal Avatar asked Dec 07 '22 11:12

Deependra Dangal


1 Answers

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

Host *
  PubkeyAcceptedKeyTypes=+ssh-dss

After that, try again.

like image 70
Alejandro Avatar answered Jan 06 '23 20:01

Alejandro