Having SSH access to a server I need to install and configure remote access using a Command Line Interface, To access Server using VNC or Terminal Server Client
To enable the GUI:
yum -y groupinstall "GNOME Desktop" && systemctl set-default graphical.target && shutdown -r now
But I can't find any solution for enabling Remote Administrative Access using command line only. CentOS documentation shows how to do it using a GUI (if you have access to GUI), but nothing about command-line options or at least which config files are getting edited with GUI interface in this case...
Does anyone knows how to do it?