Configure SSH with X11 Forwarding

  1. You can use either the -X or -Y flag to enable X11 forwarding through SSH when you log in as the root user. For example:
    ssh –Y root@server-name

    Note:

    If you do not have DNS on your server or the server name does not work, enter the IP address of the server.
  2. (Optional) Install the xorg-x11-xauth package (if it is not already installed). For example:
    yum install xorg-x11-xauth
    yum install xorg-x11-utils
  3. You can use either the -X or -Y flag to enable X11 forwarding through SSH when you disconnect and log in as the oracle user. For example:
    ssh -Y oracle@vm
  4. Find the values for the DISPLAY variable with the xauth list command.
    $ xauth list
    <domain name>/unix:12
    <domain name>/unix:11
    <domain name>/unix:10
    In the example above, either 12, 11, or 10 are suitable values for the DISPLAY variable.