Redhat – How to configure the tiger VNC in RHEL 6 to enable remote login after reboot

redhatrhel6

How to configure the tiger VNC in RHEL 6 to enable remote login after reboot? Currently, I could remote login to it when it has login already. But if I remotely restart the server, it would not allow me to remotely login again. It says connection refused.

Best Answer

chkconfig command can be used to manage services on Redhat distros such as Fedora & CentOS.

% sudo chkconfig --levels 345 vncserver on

You can see which run levels it's enabled to start automatically in with this command:

% chkconfig --list vncserver

Here's a good article on the use of chkconfig if you want to learn more about it.