0

I want to securely connect to linux through ssh. I heard that to setup a VPN is more secure.
But I don't know how to setup VPN-connect-only in Linux.
I want to restrict directly connection except through VPN.

2 Answers 2

4

VPN stands for Virtual Private Network. SSH stands for Secure Shell.

VPN simply provides a more secure (and perhaps more convenient) means of accessing your servers across insecure or public networks using other protocols.

Think of it this way.

The VPN is like a Turducken. The SSH protocol is still necessary to actually get to your server, and is like the birds on the inside. Most people can't SEE inside the turkey to know what is in there, but you know what it is and have the keys (knife) to open up the VPN packets (outer turkey layer) so that you can get at the inner bird.

In short, You cannot connect to your server ONLY through VPN without using some other protocol to handle logins, such as SSH. They are not mutually-exclusive.

4
  • 1
    ... I have no idea what a Turducken is Commented Mar 28, 2012 at 3:41
  • 1
    Courtesy of Wikipedia: A turducken is a dish consisting of a de-boned chicken stuffed into a de-boned duck, which itself is stuffed into a de-boned turkey. The word turducken is a portmanteau of turkey, duck, and chicken or hen.
    – Magellan
    Commented Mar 28, 2012 at 3:42
  • I want to know how to configure VPN-connect-only in linux.
    – Magic
    Commented Mar 29, 2012 at 2:22
  • That's a rather vague request. I'd suggest editing your answer and providing a more verbose request as to exactly what you mean by that statement. A 'VPN-only-request' COULD mean that you want to connect using the VPN protocol which is impossible because it doesn't do that OR that you wish to restrict access to the remote machine to only those machines on the VPN. You need to update your question before you can reasonably expect further assistance.
    – Magellan
    Commented Mar 29, 2012 at 3:12
2

As far as I know ssh is undoubtedly secured. However if you want to configure VPN on Debian Linux, You can follow this link.

2
  • I want to know how to configure VPN-connect-only in linux.
    – Magic
    Commented Mar 29, 2012 at 2:22
  • What do you mean with VPN-connect-only? Commented Apr 4, 2012 at 19:27

Not the answer you're looking for? Browse other questions tagged .