1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

VNC for a VPS

Discussion in 'Web Hosting' started by QuiGloriam, Nov 26, 2011.

  1. QuiGloriam

    QuiGloriam Regular Member

    Joined:
    Sep 25, 2011
    Messages:
    247
    Likes Received:
    196
    Location:
    Spain
    I already bought a VPS from hostgator, but now I want to control it with graphic interface remote control VNC.

    To do that I follow this tutorial:
    http :// wiki. centos. org/HowTos/VNC-Server

    All goes Ok, but at step 2.6.1 when I try to connect to my VPS ip like this xxx.xx.x.xx:5801 I can't connect (using browser or VNC viewer same problem)

    Also I don't understand this part:
    The above ports 5801, 5802 and 5803 must be open in the firewall {iptables) for the source IP addresses or subnets of a given client.

    Can anyone help me really need this to setup new IM business.
     
  2. shurk

    shurk Junior Member

    Joined:
    Feb 2, 2011
    Messages:
    122
    Likes Received:
    45
    It sounds like you do not have the relevant ports open in your firewall.

    The simple way to add them is to login as a root user via SSH then type 'setup', you will be presented with a menu.

    Select 'Firewall' then 'Customize'. From here you should be able to see 'Trusted Devices' and 'Allow Incoming'.

    In the 'Allow Incoming' section add '5081:tcp' hit 'OK' then 'Save & Exit' until you are back at the command line. Then type 'service network restart'

    The guide you have linked to shows that Java VNC applets connect to 508x and VNC clients connect to 509x, so you may wish to edit the above to '5091:tcp' if you do not wish to use a Java applet. Also remember that if you wish to have multiple users then you need to open a port for each of them. So if you were to have 3 users connecting thru a VNC application then you would add '5091:tcp 5092:tcp 5093:tcp''


    Please note, the method I have described allows ANYONE to connect via these ports (Assuming they have/can guess the relevant credentials). You may wish to look into iptables to lock it down further.
     
    • Thanks Thanks x 1
  3. QuiGloriam

    QuiGloriam Regular Member

    Joined:
    Sep 25, 2011
    Messages:
    247
    Likes Received:
    196
    Location:
    Spain
    Now can access by browser but new error appears, thanks a lot +rep and thanks

    This is the error: 'tty device is not owned by group tty'

    Anyone know how to fix?
     
    Last edited: Nov 26, 2011