Remote Access, SSH and Remote Desktop

From Geology Computing

Accessing computers on the policy-based network remotely requires utilizing the UMD jumpbox for SSH connections and RDS gateway for Windows Remote Desktop connections.

Before logging into either system, you need to be given permission. Send an email to Todd Karwoski at karwoski@umd.edu to request access.

NOTE: The Global Protect VPN is required to access computers remotely, regardless of whether you are on campus or off campus.

These instructions adapted from the DivIT support documents below:

Windows Remote Desktop (RDP)

Windows

  1. Connect to the GlobalProtect VPN.
  2. Open the Remote Desktop Connection application.
  3. By default, the window is compact. Click the Show Options button in the bottom left to expand it.
    Initial window of the Windows Remote Desktop Connection application.
  4. Click the Advanced tab.
    Expanded main window of the Windows Remote Desktop Connection application
  5. Click the Settings button in the Connect from anywhere section.
    Advanced tab of the Windows Remote Desktop Connection application
  6. Enter the following information into the RD Gateway Server Settings window that appears:
    Remote Gateway server settings for Windows Remote Desktop
    • Check the box to Use these RD Gateway server settings
    • Server name: rdsgateway.umd.edu
    • Logon method: Allow me to select later
    • UNCHECK the box next to Bypass RD Gateway server for local addresses
    • You can check the box next to Use my RD Gateway credentials for the remote computer if you don't log into remote computers with accounts other than your own. Otherwise, it will always use your UMD account to try logging into the remote computers and not ask for your login.
  7. Click OK to save the settings and go back to the main window.
  8. Click the General tab.
  9. In the Logon settings section, enter the hostname of the computer you want to connect to.
    Connection window for the Remote Desktop Connection
  10. When you click Connect, you will see this login window. If you checked the box to use the RD Gateway credentials, this window will let you know it's going to use your login details for the gateway and the remote computer. If you didn't check that box, you will be asked to log into the RD Gateway server first and then to log into the remote computer.
    Login window for the Windows Remote Desktop Connection
    Note the username that is displayed. The username should be ad\DIRECTORY_ID. If not, click the More choices link and then the Use a different account button. The User name field is now blank and you can enter the correct username and password to connect.
    Login window using a different account for the Remote Desktop Connection
  11. Click OK and it should log in to the remote computer.

MacOS

  1. Connect to the GlobalProtect VPN.
  2. Open the Windows App. If you don't have it installed, you can install it from the Mac App Store.
  3. Click the plus sign in the top right corner and select Add PC
    Add PC connection to Windows app.
  4. In the Add PC window, enter the name of the computer you are connecting to. Be sure to add .wired.dyn.umd.edu to the end of the computer name. In the Gateway section, click the dropdown that says No gateway and click Add Gateway.
    Enter PC name and add a connection gateway.
  5. In the Add a Gateway window, under Gateway name enter rdsgateway.umd.edu and under Credentials change it from Use PC User Account to Add Credentials.
    Enter RDS gateway address and enter credentials.
  6. In the Add Credentials window, the Username is going to be ad\DIRECTORYID. Be sure to include the ad\ before your Directory ID. You can enter your password and give it a friendly name if you'd prefer.
    Enter your UMD login credentials.
  7. Click "Add" to get back to the "Add PC" settings window. Below the Gateway section, uncheck the box next to Bypass for local addresses. Even if you are on campus, you will need to log in through the gateway before connecting to your computer.
    Uncheck the box to not allow bypassing the gateway on local networks.
  8. Click Add to finish configuring the connection.
  9. In the main window, double click the icon to connect to your remote computer. Depending on if you saved your password in the settings or not, you will first need to login to the RDS Gateway server and then log in to your remote computer.
    The main Windows app screen.

SSH

PuTTY

  1. Connect to the GlobalProtect VPN.
  2. Open PuTTY and enter the following information:

    Host Name: campus-jump.umd.edu
    Port: 22

    If you want to save the connection information, enter a descriptive name in the box underneath Saved Sessions and click the Save button.

    Login window for PuTTY
  3. To make the connection, either double click your saved session or click the Open button.
  4. If you see a message about The host key is not cached for this server, you can click Accept. You will only see this message the first time you connect to the server.
  5. The first prompt is to log into the jump server. Enter your Directory ID and press Enter.
    Jumpbox login with PuTTY
  6. Next you will enter your Directory password.
    Password entry for the jump box in PuTTY
  7. Once you have logged in, you will be asked for the hostname or IP address of the remote computer. When you enter the hostname, append .wired.dyn.umd.edu to the name. Otherwise, it won't connect and the window will disappear.

    NOTE: If you need to login as a different user on the remote computer, enter USERNAME@HOSTNAME.wired.dyn.umd.edu.

    Enter the remote server hostname after connecting to the jump box in PuTTY
  8. You will be asked to accept the fingerprint of the remote computer. Type yes and press enter.
    Accept the fingerprint of the remote computer through the jump box in PuTTY
  9. Enter your password for the remote computer and press enter.
    Enter the password for the remote computer via the jump box in PuTTY
  10. You should now be logged into the remote computer.
    System prompt of remote connection via jump box in PuTTY if successful
  11. To disconnect, simply type logout at the prompt and you will be disconnected.

Linux/MacOS Terminal

WinSCP

  1. Connect to the GlobalProtect VPN.
  2. When you open WinSCP, you will see the login window. Enter the hostname of your remote computer followed by .wired.dyn.umd.edu . Click the Advanced button to configure the jump box settings.
    Login screen for WinSCP
  3. On the left side of the window, click Tunnel to configure the tunnel settings. Check the box next to Connect through SSH tunnel to enable edits to the configuration. Under Host name, enter campus-jump.umd.edu and then enter your Directory ID under User Name. You can leave the password blank.
    Tunnel configuration in the advanced connection settings
  4. Click OK to close the window to go back to the login window.
  5. If you'd like to save the connection, click Save. Otherwise, you can click Login to make the connection.
  6. You will be asked to enter your password twice: once for the campus-jump.umd.edu jumpbox and again for the remote computer.

Using Port Forwarding with Other Software

If the application you would like to use doesn't support the SSH tunneling through the jump box on its own, it's possible to make the jump box connection on your local computer and use it to tunnel the connection.

First, make sure you are connected to the GlobalProtect VPN.

Then, open a terminal window. On Windows, search for Powershell in the start menu. On MacOS, open the Terminal app and on Linux open a terminal window.

Type the following command into the terminal window and press enter:

ssh -J DIRECTORYID@campus-jump.umd.edu USERNAME@COMPUTERNAME.wired.dyn.umd.edu -L 2222:localhost:22 -N

You will be asked to enter your password twice: once for the jump server and again for your remote computer.

This command connects to the remote computer through the jump server. The -L 2222:localhost:22 flag sets up a local port tunnel, forwarding traffic on your machine's port 2222 to port 22 on the remote computer. The -N flag tells the remote computer to not give you a prompt.

NOTE: If you use a different port than 2222, choose one higher than 1024. Ports less than 1024 are reserved.

Next, open the software you would like to use. For the server/computer address, enter localhost and then the username and password of the remote computer.

Once you are finished, close your application. In the Powershell window, press Ctrl-C to disconnect.