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.
0As 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