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 個月前檢視次數 857 次
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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南