Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > ssh vs VPN - what's the difference?

ssh vs VPN - what's the difference?
Thread Tools
Xserve@home
Junior Member
Join Date: Sep 2005
Location: J a p a n
Status: Offline
Reply With Quote
Nov 11, 2005, 11:24 PM
 
I googled ssh vs VPN and read a few articles, but I still can't tell the difference. Is one better than the other for certain environments?
     
Partisan01
Dedicated MacNNer
Join Date: Sep 2003
Location: Pittsburgh, Pennsylvania
Status: Offline
Reply With Quote
Nov 11, 2005, 11:30 PM
 
ssh connects you to one computer while the computer you're using remains on the original network. VPN makes it appear that your workstation is on the remote network you're connecting to. This means any addresses that are internal on the remote network are accessable to your computer over a VPN.
Apple iBook, B&W, Quadra 660, PowerMac 6100
Sun Netra T1, Ultra 1, Javastation
http://natetobik.mine.nu:81
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Nov 12, 2005, 08:11 AM
 
Good answer.

The take away point is that the aren't even similar applications.

VPN is a wrapper around your network interface. In the case of Mac OSX, there is a kernel extension installed that essentially (and this overly simplified) sticks itself between your applications and the network interface and encrypts everything in between you and the VPN device on the other end.

SSH on the other hand is simply a secure remote shell on another host. There are ways of tunneling other apps over the ssh session, but it's not quite the same functionality as VPN.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Xserve@home  (op)
Junior Member
Join Date: Sep 2005
Location: J a p a n
Status: Offline
Reply With Quote
Nov 12, 2005, 06:29 PM
 
Thanks for that info. I think I'll stick with SSH then, since I don't need to see my whole internet LAN from work anyway.
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 12, 2005, 08:16 PM
 
Originally Posted by Kristoff
VPN is a wrapper around your network interface. In the case of Mac OSX, there is a kernel extension installed that essentially (and this overly simplified) sticks itself between your applications and the network interface and encrypts everything in between you and the VPN device on the other end.

SSH on the other hand is simply a secure remote shell on another host. There are ways of tunneling other apps over the ssh session, but it's not quite the same functionality as VPN.
I always understood it as something like this:

Pretend you're sending your kid a few blocks wallking across town to get you some groceries. SSH is encrypted, but it's kinda like putting a tin foil hat on the kid's head so nobody can read his brain. He's still outside with everyone else, but at least nobody can read his brain. VPN is kinda like constructing a tin foil tunnel from your house to the grocery store. He's the only one using the tunnel.

They're both secure... just different methods.

( Last edited by [APi]TheMan; Nov 13, 2005 at 12:23 AM. )
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Nov 12, 2005, 08:35 PM
 
hahahh.....good analogy

signatures are a waste of bandwidth
especially ones with political tripe in them.
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Nov 18, 2005, 12:31 PM
 
Originally Posted by [APi]TheMan
VPN is kinda like constructing a tin foil tunnel from your house to the grocery store.
I did that. Works great. Nobody can see me buying groceries no more

-t
     
Xserve@home  (op)
Junior Member
Join Date: Sep 2005
Location: J a p a n
Status: Offline
Reply With Quote
Dec 1, 2005, 07:28 PM
 
So ... VPN and IP Tunneling are essentially the same?
     
zanyterp
Mac Enthusiast
Join Date: Apr 2003
Location: manticore or people's republic of haven
Status: Offline
Reply With Quote
Dec 12, 2005, 01:13 PM
 
not quite. a vpn will use the idea of ip tunneling, in that information is pushed out a secure line on a different port/protocla than native, but there is more encryption and protection with the vpn. (at least that is my understanding).

and a vpn puts you, the remote user, on the corporate intranet. my understanding of ip tunneling is that you are still a remote node as far as the intranet servers are concerned and you may or may not have the same type of access as if you were in the office.
some people are like slinkys: they don't do much, but are fun to push down stairs.
     
ssexton
Fresh-Faced Recruit
Join Date: Dec 2005
Status: Offline
Reply With Quote
Dec 30, 2005, 12:15 PM
 
Originally Posted by Kristoff
The take away point is that the aren't even similar applications.
Not entirely true. I would say, for example, that Notepad and Quake aren't even similar applications. SSH and VPN have a bit in common. In fact, you can use SSH to create a VPN!

Both of these apps can tunnel, that is how they are similar, and may be what led to the OP question in the first place.

Dedicated VPN software will typically bring up a new network interface for you, that corresponds to the tunnel, so from the perspective of your machine it is almost like you are directly connected to the remote network. There tends to be glitches, most commonly related to private DNS names and being able to connect to the VPN and the public Internet at the same time (long story).

SSH, by itself, can only set up port forwarded tunnels, and in general requires that you have a good handle on IP networking. For example, you can set up a tunnel to a private POP3 server to check your email, but you would have to reconfigure your email client to use the tunnel. In other words, SSH tunnels get the job done, but its a lot more intrusive.

The interesting thing to do with SSH, is to tunnel PPP, also known as "poor man's VPN". See http://www.tldp.org/HOWTO/ppp-ssh/ to get the idea, and http://www.macdevcenter.com/pub/a/ma...pn.html?page=2 for Mac-specific instructions. Because PPP also brings up another network interface, the end result has similar transparency as you would with a 'real' VPN client. The performance isn't as good though, so you want to use real VPN (PPTP, etc.) when you can.
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Dec 31, 2005, 07:25 PM
 
and you can make a car fly if you put wings on it and drive it fast enough.

Real VPN uses IPSEC and secures IP at the Network Layer.

SSH secures TCP/UDP at the Transport Layer.

They aren't the same.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
VValdo
Dedicated MacNNer
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 2, 2006, 05:38 AM
 
I would say, for example, that Notepad and Quake aren't even similar applications.
what?!!


W
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Jan 2, 2006, 03:52 PM
 
Originally Posted by VValdo



That's as good as PSDoom
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
smithley
Fresh-Faced Recruit
Join Date: Jan 2006
Status: Offline
Reply With Quote
Jan 29, 2006, 12:14 AM
 
Originally Posted by Kristoff
and you can make a car fly if you put wings on it and drive it fast enough.

Real VPN uses IPSEC and secures IP at the Network Layer.

SSH secures TCP/UDP at the Transport Layer.

They aren't the same.
That's like saying that fishing for bass and fishing for marlin aren't even similar. What difference does the depth (of the ISO/OSI stack) make? Both VPN and SSH do the same thing: take clear-text packets, encrypt them, and send them to a remote host to be decrypted and sent clear text to the destination server. VPN adds the idea of a virtual network interface so all traffic can be routed in this way, whereas SSH only deals with point-to-point encrytion of a single stream. Ultimately, VPN only uses a single stream as well, but that fact is highly transparent.

SSH uses a remote SSH server to route packets, whereas VPN will typically use a firewall, and less often a gateway. The main point (of this thread I think) is that both are equally difficult to crack. The example earlier about a foil tunnel versus encrypted packets isn't a very good one, since they both send encrypted packets out over the clear for inspection - with the possible difference that with SSH a TCP sniffer running locally won't reveal sensitive data, but with VPN it would (since the encryption is applied at a lower level).

Yes the two implementations have some very different details, but they also have a lot in common.
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 29, 2006, 06:05 PM
 
Originally Posted by smithley
That's like saying that fishing for bass and fishing for marlin aren't even similar. What difference does the depth (of the ISO/OSI stack) make? Both VPN and SSH do the same thing: take clear-text packets, encrypt them, and send them to a remote host to be decrypted and sent clear text to the destination server. VPN adds the idea of a virtual network interface so all traffic can be routed in this way, whereas SSH only deals with point-to-point encrytion of a single stream. Ultimately, VPN only uses a single stream as well, but that fact is highly transparent.

SSH uses a remote SSH server to route packets, whereas VPN will typically use a firewall, and less often a gateway. The main point (of this thread I think) is that both are equally difficult to crack. The example earlier about a foil tunnel versus encrypted packets isn't a very good one, since they both send encrypted packets out over the clear for inspection - with the possible difference that with SSH a TCP sniffer running locally won't reveal sensitive data, but with VPN it would (since the encryption is applied at a lower level).

Yes the two implementations have some very different details, but they also have a lot in common.
Wow, great points... thanks for the rundown.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:53 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,