This is a nice guide to get you started:

Here are additional steps that I needed to take to get it working:

make sure that the your key file has 600 permissions (chmod); otherwise you will get the error message: Permission denied (publickey).

when ssh-ing make sure to include the root username:
ssh -v -i /path-to-your-key/vpn.pem root@ip-adr

after connecting to your server through ssh make sure to set passwd by:
passwd openvpn

to configure openvpn client on (mac osx) go to:

and download client software; as well as connection settings (profile); that you will need to import into your client later.


if you change ip of vpn server you may need to reset hosts on your machine:

ssh-keygen -R YOUR-VPN-IP-ADDR





Searched for openvpn connect osx 10:27pm
  How to connect to Access Server from… – 10:27pm
Searched for client.ovpn 10:25pm
Searched for ec2 openvpn client.conf 10:18pm
  Setting up a VPN on Amazon EC2 and a… – 10:18pm
  Setting up OpenVPN on Amazon’s EC2 -… – 10:19pm
  OpenVPN on EC2/AWS | Linux: sysadmin,… – 10:19pm
Searched for openvpn client.conf 10:17pm
  client.conf in sample-config-files –… – 10:17pm
Searched for openvpn osx configuration file 10:14pm
  HowTo: Mac OS X OpenVPN Setup Tutorial… – 10:14pm
Searched for osx openvpn 10:13pm
Searched for osx openvpn add ip 10:13pm
  HOWTO – OpenVPN – 10:13pm
Searched for osx openvpn add 10:13pm
Searched for openvpn default password 10:07pm
  Default Password for VMware and VHD Appliance… – 10:07pm
  How to configure OpenVPN-AS after package… – 10:07pm
Permissions error when connecting to… –
Searched for Permission denied (publickey). ec2 mac 9:48pm
Searched for Permission denied (publickey) ec2 9:31pm
  AWS Developer Forums: SSH to EC2 problem:Perm… – 9:31pm
  ssh – Permission denied (publickey) on… – 9:31pm
Searched for nx ec2 9:25pm
  Remote Graphical Linux Desktop on EC2… – – Viewed 47 times 9:25pm
Searched for openvpn ami 8:04pm
  OpenVPN Access Server AMI – 8:04pm
amazon ec2 – Pre-configured EC2 VPN AMI… – 8:03pm
Searched for ec2 vpn

About Neil Rubens

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *