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

Time:12-29

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?

CodePudding user response:

First you have to change file permission like this chmod 400 key.pem then use ssh -i "key.pem" [email protected]

CodePudding user response:

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.

  • Related