Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Complicate VNC connection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Wed May 26, 2004 2:45 am    Post subject: Complicate VNC connection Reply with quote

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
View user's profile Send private message
db_404
Guru
Guru


Joined: 05 Dec 2002
Posts: 336

PostPosted: Wed May 26, 2004 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Wed Jun 09, 2004 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Wed Jun 09, 2004 4:33 pm    Post subject: Reply with quote

your putty setup sounds right
the vnc server address should be localhost:1
Back to top
View user's profile Send private message
rmalolepszy
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 167

PostPosted: Wed Jun 09, 2004 5:25 pm    Post subject: Reply with quote

and also make sure your sshd.conf has port forwarding enabled.
_________________
Cheers,
Ryan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum