I’m trying to install openvpn to my droplets . I have successfully installed both openvpn and easy-rsa
apt-get install openvpn easy-rsa
But when it comes to editing the server.conf file, that’s where I get stuck. Once I run this command to open the server.conf with Vim editor:
vim /etc/openvpn/server.conf
I’m getting a black screen with blue ‘dashes’ (-) all the way to the bottom and E35: NO previous regular expression.
Kindly let me know where I’m going wrong.
Note: The problem started when I entered an SSH key on a different droplet.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It looks like you’re missing a step here. You are currently seeing those dashes indicating that those lines don’t exist as you are creating a new blank file. The default install of openvpn does not create a server.conf file in /etc/openvpn. You’ll need to grab the sample config file from elsewhere in the filesystem where it is compressed.
gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz > /etc/openvpn/server.conf
This guide will assist you.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.