Vncserver
<yambe:breadcrumb>Remote_administration_tools|Remote administration tools</yambe:breadcrumb>
vncserver
It is possible to do graphical remote desktop on a machine using vncserver. Vncserver can be started remotely over SSH so direct physical access to computer is not required for enabling remote desktop. Use command 'vncserver :0' or 'vncserver :1'. It will prompt for server password. Type something safe of about 8 characters and repeat password. Note that this password would be permanently saved for future sessions also. If there is nothing already listening on port 5900 in case of :0 or port 5901 in case of :1 then vncserver will start easily. In case of error try :2, :3, etc.
Now use
ssh -L 5901:127.0.0.1:5901 <username>@<host>
to connect to server assuming vncserver is listening on 5901 (:1). Then on the remote client use 'vncviewer 127.0.0.1:5901' to connect to desktop of remote server