X11 forwarding

Figure 986. X11 browser application forwarding Slide presentation
X11 browser application forwarding

exercise No. 8

ssh X11 forwarding

Q:

In this exercise we again pretend you can access a host A exclusively by ssh.

  1. Create a server like in Improve your server's security! .

  2. Check for Nginx accessibility.

  3. Configure your firewall to allow ssh access only.

  4. Nginx should no longer be accessible.

  5. Access your remote host and install the xauth package

    Note

    This is being required for opening X11 connections.

  6. Re-Login to your remote host this time using ssh's -Y option allowing for X11 forwarding.

    Note

    Unless you are on Linux you may have to install an X11 server locally.

  7. Install the Firefox browser on your remote server:

    apt install firefox-esr
  8. Execute the Firefox browser on your remote host connecting the GUI to your local desktop. You should now be able to access your Nginx server as being shown in Figure 986, “X11 browser application forwarding ”.

    Note

    This might take some time. You may fancy a more powerful server type.