Find the answer to your Linux question:
Results 1 to 9 of 9
Hey, I have been working on this for quite some while.. Googled, tryed examples. But for some reason i just dont get it. I need to connect with a VNC ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429

    Tunnel VNC over SSH


    Hey, I have been working on this for quite some while..
    Googled, tryed examples. But for some reason i just dont get it.
    I need to connect with a VNC Client to port 5921.
    Then the SSH Tunnel should pick it up and connect to localhost:5920.
    I just dont get it.. :S
    Anyone has a good example?
    Thanks.
    New Users, please read this..
    Google first, then ask..

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    682
    It sounds like you are after local port forwarding. Assuming the ssh server is the same one as you wish to VNC to:

    Code:
    ssh -L 5921:localhost:5920 user@ssh.server.com
    then connect VNC to localhost port 5921. Ssh will forward the encrypted data to the server where it will be forwarded to the destination server : port, in this case localhost:5920.

    Let us know how you get on,

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  3. #3
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    I get a cant connect with my VNC..
    Let me draw an entire idea of the situation.

    Server:
    - Fedora Core 6
    - SSh
    - VNC Server
    - UserminModule -> VNC Client.

    Usermin is running on MiniServ on a SSL connection.
    There is a VNC Client when they login.
    That VNC Traffic must be VERY secure.
    So, I want to make that go over SSH aswell as over SSL.
    I cant restrict this VNC from IP Adresses since its ment to use were ever the users want..

    I think and hope that you might be informed better now.
    New Users, please read this..
    Google first, then ask..

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    682
    Usermin is a new one on me. I googled for it so I have a fair idea of what it's for, but I don't see any mention of a VNC module.

    Could you provide a link to some information on it please. Once we've got some details on what it does we should be able to help you better.

    Let us know how you get on,

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  6. #5
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    well basicly usermin is a php login that runs SSL
    New Users, please read this..
    Google first, then ask..

  7. #6
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    682
    Quote Originally Posted by RobinVossen View Post
    well basicly usermin is a php login that runs SSL
    I saw that from the usermin page but there doesn't seem to be a mention of a VNC client in the standard modules.

    If you can tell us where you got the extra module (assuming it is non-standard and I'm not being dim) we should be able to find out what you need to know.

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  8. #7
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Its not the module I checked that a couple of times.
    The module is very easy. Just the Java VNC Client from Tight VNC put in a Module.
    Nothing Fancy
    New Users, please read this..
    Google first, then ask..

  9. #8
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    682
    Quote Originally Posted by RobinVossen
    That VNC Traffic must be VERY secure.
    So, I want to make that go over SSH aswell as over SSL.
    The java client being delivered to the client via SSL doesn't mean that the VNC session is protected with SSL, but ssh tunnelling should be ample protection.

    What are the steps you are taking and what is the error when you try to connect the VNC client.

    Let us know how you get on,

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  10. #9
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    The Error is cant connect.
    And I have a SSH Tunnel liserning to the port that he should connect.
    And its aimed to the right server.
    But I think thats wrong.. Since well the Client sees it as a SSH tunnel and not as a VNCServer..
    New Users, please read this..
    Google first, then ask..

Posting Permissions

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