Re: VNC + SSH question..

From: Garrett Cooper (youshi10_at_u.washington.edu)
Date: 08/31/05

  • Next message: Kelly D. Grills: "Re: Command to trace a route?"
    Date: Wed, 31 Aug 2005 10:25:31 +0900
    To: Eric Murphy <eam404@earthlink.net>, FreeBSD Questions <freebsd-questions@freebsd.org>
    
    

    On Aug 31, 2005, at 9:22 AM, Eric Murphy wrote:

    > Hey guys had a SSH forward question so here goes...
    >
    >
    > I have 2 computers on my lan one of them is a server and the other
    > is my desktop.
    >
    > Desktop 192.168.1.104
    > Server 192.168.1.103
    >
    > Now I have port forwarding setup on my crappy linksys router so 22
    > is pointing to my Server (192.168.1.103)
    >
    > My question is this...
    >
    >
    > I would like to tightVNC to my Desktop (192.168.1.104) forwarding
    > it through SSH. Now from what I understand If my router was
    > pointing to my desktop this would not be a problem at all. All I
    > would have to do is SSH to my IP while forwarding 22 to 5900.
    > However I cant do it this way since 22 is pointing to my server.
    > So I figured I would ssh into my server and issue a command such as
    > ssh 192.168.1.103 -L22:192.168.1.104:5900 however once im in and I
    > run vncview it obivoiusly can be displayed becuase Im not running X
    > on the server. Am I way off here? Is there a way to do this? Will
    > I need to forward 22 on my router to the desktop as well as server?
    > Is there a way to connect to my server thats not running X and some
    > how vnc into my desktop?
    >
    > On the remote machines I'd be useing PuTTY for windows and SSH on
    > Linux box's. Prehaps someone can give me a step by step guide?
    >
    >
    > Thanks.

    To my knowledge TightVNC doesn't support access to X via the :0'th
    display. That may be your problem and not your port forwarding setup,
    because it appears-at least to me-that it is correct. So, try a
    different display or if you want access via display :0 try x11vnc.
    Note that it may be considered more of a security issue since it
    would connect directly to your desktop's display.
    -Garrett
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Kelly D. Grills: "Re: Command to trace a route?"

    Relevant Pages

    • Re: Suggestions for a square font?
      ... > ssh -X creates a tunnel from distant_computer to your real X server at ... > the tunneled X display, connecting directly to the X ... Let's say that the first line was for ssh users and the second ... connect through ssh and play a curses game. ...
      (rec.games.roguelike.development)
    • X11 session over ssh, problem
      ... The problem is that I ssh to a server, and then try to run a program that requires an X display. ... But if I do the same to B (i.e. xterm -e ssh B &), then try to run a program like xpdf which uses X, it doesn't work. ...
      (Debian-User)
    • RE: Problem with X server
      ... Try tunneling everything through ssh. ... This gets around the need to use the xhost and export display settings. ... Subject: Problem with X server ... On the local host, type: ...
      (RedHat)
    • RE: MySQL/PHPMyAdmin on FC3 Connection Problem
      ... // You can disable a server config entry by setting host to ''. ... MySQL server ... MySQL control user settings ... table to describe the display fields ...
      (Fedora)
    • Re: Attempting to run remote X app
      ... > I'm attempting to ssh into a central server and run an X app, ... Make sure the ssh server is forwarding X connections: ... DISPLAY environment variable is set), the connection to the X11 display ...
      (comp.os.linux.x)