Connecting to a Campus System via Remote Desktop (macOS)

Overview

This tutorial is for members of Science seeking to establish a Remote Desktop connection to a campus PC/server without having VPN access.

Audience

This tutorial is written for:

  • Members of the Faculty of Science (faculty/staff/student)
  • Those comfortable with computers and installing/configuring software

Prerequisites

To complete this tutorial, you must:

  • Have a PC or server on campus that is already configured for Remote Desktop connections (including having the service enabled and the correct firewall ports open)
  • Know the hostname or IP address of the PC or server on campus to which you wish to connect
  • Have requested and been approved for access to gate.sci.uwo.ca
  • Be running macOS Catalina (10.15) or higher.

Tutorial

  1. Install Remote Desktop on your computer.
  2. Press F4 to open the Launchpad.  Search for terminal and click the icon to launch the application.
    Terminal icon in the Launchpad
  3. Execute the following command to establish an SSH tunnel, replacing mypc.uwo.ca with the hostname of the PC or server on campus to which you wish to connect, and username with your Western username.

    ssh -L 9000:mypc.uwo.ca:3389 username@gate.sci.uwo.ca

    The example above assumes you have a PC on campus named mypc.uwo.ca that is listening on the default Remote Desktop port of 3389.  To connect to this host, you will connect to port 9000 on your home computer once the tunnel is established.

    Establishing an SSH tunnel
  4. If you receive a warning about the authenticity of the host, type yes and press Enter.  This is normal and expected when first connecting via SSH to a host.
    SSH warning
  5. When prompted, enter your Western password.  Note that you will not be able to see what you are typing when entering your password.
    SSH authentication
  6. Once logged in, leave the Terminal window open. 
  7. Press F4 to open the Launchpad.  Search for Microsoft Remote Desktop and click the icon to launch the application.
    Remote Desktop in the Launchpad
  8. Click the + button at the top and select Add PC.
    Remote Desktop - Adding a Host
  9. In the PC name field, enter localhost:9000 and click Add.
    Remote Desktop - Hostname
  10. Double-click the localhost:9000 entry.
    Remote Desktop - Establishing a Connection
  11. When prompted for account credentials, enter the username and password you normally use to authenticate with the PC or server and click Continue.

    Important: If the computer/server to which you are connecting is joined to the UWO Windows domain (that is, if you usually log in with your Western username and password), then enter your username as  UWO\username, where username is your Western username.  See the screenshot below for an example.

    Otherwise, if the computer/server to which you are connecting is not joined to the UWO Windows domain, simply enter the username that you normally use to log in.

    Remote Desktop - Authenticating
  12. If you receive a certificate warning, click Continue.
    Remote Desktop - Certificate Warning
  13. You should now be connected to the remote system via Remote Desktop. 
  14. When you are finished with your session, close Remote Desktop by selecting Microsoft Remote Desktop Quit Remote Desktop from the main menu bar.
    Remote Desktop - Quitting
  15. In the Terminal window, type exit and press Enter.
    Terminal - Disconnecting