Permission denied (publickey, gssapi-keyex, gssapi-with-mic)

0

Hi AWS, I am trying to SSH into my private EC2 instance with my OpenVPN EC2 instance. The user I am logged into the openvpn instance is openvpnas but when I am running the command I am getting the error I attached in the screenshot. I know it's a straightforward thing like exchange of SSH keys but just want to double check.

Please refer to the screenshot below:

Permission denied

profile picture
Arjun
已提问 9 个月前865 查看次数
1 回答
2
已接受的回答

Does the user openvpnas have read permission on the key?

$ ls -l privateserver-poc-aws.pem
profile picture
专家
Steve_M
已回答 9 个月前
profile pictureAWS
专家
已审核 9 个月前
  • Yes it does. Here is the output: -r-------- 1 root root 1679 Aug 23 03:52 privateserver-poc-aws.pem

  • The owner of the key is root and only root has read access to the key.

    To make the key readable by openvpnas run sudo chmod o+r privateserver-poc-aws.pem

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则