Not able to login by ssh to my centos server (ssh agent failure)

I was trying to log into my server by ssh and I got below error:
Agent admitted failure to sign using the key.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

I fixed the issue by loading the keys into the SSH agent by running below commands:
—>  eval “$(ssh-agent -s)”
Agent pid 4898
—> ssh-add

Enter passphrase for /home/user/.ssh/id_rsa: (“Enter your passphrase here”)
Identity added: /home/user/.ssh/id_rsa (/home/user/.ssh/id_rsa)

Done! I tried ssh again and it worked!!!

Error agent admitted failure to sigh

Leave a Reply