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.
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