Help:Remote X Terminals

From CECS wiki
Jump to navigation Jump to search

You can run X applications on remote X terminals by following these instructions. This method is best if the two machines in question are on the same network, and that network is considered secure.

This won't work through a firewall, and is only as secure as the underlying network. You could also try the ssh tunneling method, which is much more secure and a lot easier to set up.

NOTE: rlogin and telnet have been disabled on nearly all servers, which may force you to use ssh anyway.

If you are looking for a free X software to run under Microsoft Windows, both free and commercial versions are available:

Note that the old method below is largely obsolete and may not be available. Please see Help:SSH tunneling for X

Old method[edit]

Note that local refers to the machine you are sitting in front of, and remote refers to a machine on the net (other than the local machine) that you wish to run X applications on.

  1. Telnet or rlogin to the remote machine.
  2. In a local window, type:
    xauth list
    or
    xauth list $DISPLAY
  3. In the remote window, type:
    xauth add [paste]
    Where [paste] represents copying and pasting the first line shown by xauth list.
    You may have to edit the hostname if the remote doesn't recognize it.
  4. In the remote window, type:
    xterm -display local_machine:0 &
    note that local_machine should be the same name (possibly edited) as was used above in the xauth add line.

If this doesn't work....

  • If the xauth add command says unknown hostname you will have to try again, but replace the hostname in the xauth line with the ip address of the local host
  • If xauth works, but xterm says refused by server then either you did not copy the correct line from xauth list (perhaps the first line wasn't the right one), or xauth add didn't actually work, or the local and remote machines have different byte orders (which complicates things--use nextract/nlist instead of list/add with xauth).