Le risorse di ssh sono infinite!
La cosa più semplice che ssh permette di fare è l'accesso ad una macchina remota e l'impartire comandi da CLI come se si fosse fisicamente di fronte ad essa.
Alcune volte, però, mi sarebbe stato più utile avere un accesso di tipo grafico su quella macchina.
I searched google and found information with XDMCP, a protocol that is already available in Ubuntu's GDM and of course ... (But also other Unix)
This, however, is a protocol that encrypts the traffic and consequence of a solution is not very safe to use on the Internet!
After exhausting research, I found a solution that makes efficient use of ssh to encrypt the data and an X server like Xnest or Xephyr.
Then, on the target machine must be installed in addition to the OpenSSH server Xephyr server (or Xnest).
Then, to get a graphical login on that machine just log in via ssh enabling X11 forwarding with: $ ssh-X remote-host
and then run:
$ xinit / etc/X11/xinit/xinitrc - / usr / bin / Xephyr: 1-800x600 screen which will open a window on the host by which we are connected inside the graphic session ... And then you can use the target machine with a GUI as if you were in front of it!
In my case, you start a GNOME session that keeps all your settings and preferences saved on the remote machine.
Here is a picture that gives an idea of \u200b\u200bhow things work ...