Unix Wiki

Remote machine[]

  • xauth installed (you might need also xdm if libxdmcp6 is not installed)
  • /etc/ssh/ssh_config with ForwardX11Trusted yes or ForwardX11 yes, depending on how much you care about security[1].

Local machine[]

Run ssh -X user@remoteip


Let's assume that you have xterm installed on the server machine. Test your connection following those steps

  1. Connect to the server machine: ssh -X user@your_remote_machine.net. You can add the -v parameter after the -X if you want to debug your connection.
  2. Once you are logged in, type xterm and press ENTER.
  3. Depending on the speed of your connection, you may have to wait a minute until the xterm window appears on your desktop. If the speed is too slow (XDMCP is a bandwidth hog), you might try to use compression


  • In the remote machine, edit /etc/ssh/ssh_config and set Compression yes. You can specify the Compression level with Compression N, where N is a number from 1 (fast compression) to 9 (slow compression, best). The default is 6, which should be good enough.
  • https://security.stackexchange.com/a/14817/147346
  • Advertisement