1 |
John Jolet wrote: |
2 |
>>Why do though all the hassle of setting up a VPN when you can use SSH to |
3 |
>>provide a secure tunnel into the network and use that instead? Works |
4 |
>>fine for me. |
5 |
>> |
6 |
>># ssh -L5900:hostname:5900 username@××××××××.tld |
7 |
>># vncviewer localhost:0 |
8 |
> |
9 |
> Okay, now show me the instance where you want box->internet->box->vnc server. |
10 |
|
11 |
That does provide a tunnel between two boxes. It's quick and simple to |
12 |
setup and can be used by any ssh client, regardless of the system. |
13 |
Whether you're on Unix or Linux. You can even do it using Windows using |
14 |
PuTTY. |
15 |
|
16 |
It's good to know in case if you need access but don't have a box that |
17 |
can't do VPN, or there's a problem with the VPN. |
18 |
|
19 |
If you want to open it up for some reason to another box, you can use |
20 |
the gateway switch (-g) and SSH will listed to all incoming connections |
21 |
on that port on the remote computer. |
22 |
|
23 |
# ssh -g -L5900:remote:5900 username@server:port |
24 |
|
25 |
> If you set up openvpn on your ssh server, you easily can tunnel across it. |
26 |
> Doing that with ssh would add another tunnel. Takes 5 minutes to set up. |
27 |
|
28 |
I'm not disagreeing with you, but a VPN can add a whole level of |
29 |
complexity and setup, whereas if you just want to remotely access a VNC |
30 |
server across the Internet, SSH works great and has added security built in. |
31 |
|
32 |
If you want to access more than VPN, i.e. SMB, or need the remote |
33 |
computer to 'appear' on the local network for some reason, VPN is fine - |
34 |
go ahead and use it. |
35 |
|
36 |
KISS - keep it short and simple. |
37 |
|
38 |
-- |
39 |
Jonathan Wright ~ mail at djnauk.co.uk |
40 |
~ www.djnauk.co.uk |
41 |
-- |
42 |
2.6.13-gentoo-r3-djnauk-b2 AMD Athlon(tm) XP 2100+ |
43 |
up 1 day, 21:39, 0 users, load average: 0.64, 0.46, 0.33 |
44 |
-- |
45 |
"My mother took me to a psychiatrist when I was fifteen because |
46 |
she thought I was a latent homosexual. There was nothing latent |
47 |
about it." |
48 |
|
49 |
~ Amanda Bearse |
50 |
-- |
51 |
gentoo-user@g.o mailing list |