linuxunixsshcertificate

Getting error while launching a SSH session Permission denied (publickey)


Getting below error while launching ssh sesssion, I have all my public keys in place in both the places 1./username/.ssh/authorizedkeys 2.trusted-user-ca.keys.pem Still getting below error.

  " Warning: Permanently added 'XX.XX.XX.XXX' (ECDSA) to the list of known hosts. Permission denied (publickey).

can anyone help on this?


Solution

  • Issue was with the public certificate, The principal name was different from the user name, tried signing the user public key with username as principal and I successfully logged in.