Chapter Three Part Three: How To Build A VPN

Looking for a simple, stable and significant VPS as your web hosting? Check out DigitalOcean, only $5 per month, and you can get $10 in credit just for signing up now.

Want to build your own VPN instead to use others', whether free or not?

If you've already had a VPS, cloud computing or dedicated server, and the Terminal application of Mac, or the Putty tool for Windows, you can start to build VPN services, whether PPTP, L2TP or OpenVPN types.

How to build a VPN

The following will show you how to build a PPTP, L2TP and OpenVPN on a VPS based on the Mac Terminal application in 3 separate posts.

First of all, run your Terminal, and enter the following command:

ssh [email protected]
Just replace "" with your VPS' IP, such as "".

Then you will see the following message:

Are you sure you want to continue connecting (yes/no)?

Enter "yes" and press the "Return" key, then, enter your password and press the "Return" key.


If you've rebuilt your VPS, you may meet the following error:

Host key verification failed.

In that case, enter the following command at first:

ssh-keygen -R

Remember to replace "" with your VPS' IP address.

After that, you can start to build your own VPN.

Spread the love
This entry was posted in E-book and tagged , . Bookmark the permalink.