Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

closed as unclear what you're asking by Magellan, Ward, mdpc, Michael Hampton Sep 27 '13 at 23:45

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

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.

share|improve this answer
    
... I have no idea what a Turducken is –  Mark Henderson Mar 28 '12 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 Mar 28 '12 at 3:42
    
I want to know how to configure VPN-connect-only in linux. –  Magic Mar 29 '12 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 Mar 29 '12 at 3:12

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

share|improve this answer
    
I want to know how to configure VPN-connect-only in linux. –  Magic Mar 29 '12 at 2:22
    
What do you mean with VPN-connect-only? –  Lucas Kauffman Apr 4 '12 at 19:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.