View previous topic :: View next topic |
Author |
Message |
gsfgf Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Funny_Figure/landstreicher.gif)
Joined: 08 May 2002 Posts: 1266
|
Posted: Wed May 26, 2004 2:45 am Post subject: Complicate VNC connection |
|
|
I have a computer that will be the vnc server. I have the vnc server set up to only accept local connections so i need to tunnel through ssh. I have a firewall/server that i need to connect through. it is running sshd. I have a laptop that will be the client. How should i connect in? _________________ Aim:gsfgf0 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
db_404 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Dec 2002 Posts: 336
|
Posted: Wed May 26, 2004 2:31 pm Post subject: |
|
|
OK, assuming you have your VNC server called myvnc (where this name is resolved by internal dns, hosts or somesuch) listening on port 5900 and your firewall myfirewall.mynet.org is out on the net. From an external box you should be able to:
Code: |
ssh -L 5900:myvnc:5900 -l myuser myfirewall.mynet.org
|
Then point the vnc client to localhost and it should tunnel though the firewall to the vnc server. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gsfgf Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Funny_Figure/landstreicher.gif)
Joined: 08 May 2002 Posts: 1266
|
Posted: Wed Jun 09, 2004 3:40 pm Post subject: |
|
|
atm i'm on a windows box. I tried to connect, but when i click connect in either tight or real vnc, nothing happens, the program just exits. In putty i forewarded L5901 to 192.168.1.7:5901. Was that correct. What should i do? I'm gonna get my laptop later today, but it would be kind of nice to be able to connect from the winboxes as well. _________________ Aim:gsfgf0 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Wed Jun 09, 2004 4:33 pm Post subject: |
|
|
your putty setup sounds right
the vnc server address should be localhost:1 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rmalolepszy Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jan 2004 Posts: 167
|
Posted: Wed Jun 09, 2004 5:25 pm Post subject: |
|
|
and also make sure your sshd.conf has port forwarding enabled. _________________ Cheers,
Ryan |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|