Getting No more authentication methods to try. Permission denied (publickey). on Ubuntu

I am trying to connect to server using SSH and getting below error.

 debug1: Authentications that can continue: publickey debug1: Trying private key: /home/etap_automation_user/.ssh/id_dsa debug1: Trying private key: /home/etap_automation_user/.ssh/id_ecdsa debug1: Trying private key: /home/etap_automation_user/.ssh/id_ed25519 debug1: No more authentication methods to try. Permission denied (publickey). rm: missing operand 
1

2 Answers

debug1: key_parse_private2: missing begin marker

Your key file is broken or in an unsupported format.

0

As Martin said in his answer, the "missing begin marker" line means that one of your keys is missing the initial banner.

A private RSA key (for example "id_rsa") should begin with

-----BEGIN RSA PRIVATE KEY----- 

and end with

-----END RSA PRIVATE KEY----- 

If you are still stuck, I suggest you post the content of your .ssh directory so we can see the keys you have there and, if you have access to it, the relevant snipped of /var/log/auth.log (assuming you are trying to connect to a Linux box).

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like