Results 1 to 5 of 5

Thread: VNC to internal computer w/ "vncviewer -via"?

  1. #1
    Join Date
    Nov 2008
    Beans
    6

    VNC to internal computer w/ "vncviewer -via"?

    I'm trying to VNC into a computer that does not broadcast it's ip address. I can ssh into it though, for example, by first ssh'ing into a computer that does broadcast it's ip address.

    Someone told me the following would work:
    Code:
    vncviewer -via user@externalhost internalhost
    but I get:
    Code:
    channel 3: open failed: connect failed: No route to host
    vncviewer: VNC server closed connection
    Googling has not helped. Any suggestions appreciated. Thanks.

  2. #2
    Join Date
    Feb 2007
    Location
    Topeka, Kansas
    Beans
    2,317
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: VNC to internal computer w/ "vncviewer -via"?

    When you SSH in, are you using the IP address or a hostname?

  3. #3
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: VNC to internal computer w/ "vncviewer -via"?

    I'm guessing they are trying to connect to it from outside the local network.

    Just use an SSH tunnel.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  4. #4
    Join Date
    Nov 2008
    Beans
    6

    Re: VNC to internal computer w/ "vncviewer -via"?

    Ah, well, the computer I want to eventually VNC to only has an IP address (not on DNS), and you can't access it from say home (call it a work computer). Call this "computer1".

    But I can access another computer at work (call this "computer2") from home, so that's why the guy told me to use the -via option for vncviewer.

    I can get to computer1 this way:
    Code:
    ssh user2@computer2 (enter password)
    ssh user1@computer1 (enter password)
    But typing:
    Code:
    vncviewer -via user2@computer2 computer1
    doesn't work (I get the error message posted earlier). Again, computer1=IP address and computer2=hostname.

    Thanks again.

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: VNC to internal computer w/ "vncviewer -via"?

    Just create a SSH tunnel to whatever machine you want to connect to with VNC.

    See here: http://www.cyberciti.biz/tips/tunnel...ssh-howto.html
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •