Connecting to a Linux Host

Connecting to a LInux Host via SSH and RDP

Host: The remote computer that you want to access from wherever you are (computer you are connecting to)

Client: The device that you use to connect to your remote host (computer you are connecting from/are using)

SSH

Step 1: Configure SSH on the Host

Ubuntu Host

Enter the following commands in terminal: 

  • sudo apt install openssh-server to install openssh server 
  • sudo systemctl enable ssh to enable ssh
  • sudo ufw allow ssh to allow ssh traffic through firewall
  • sudo systemctl status ssh to check ssh status

Image of commands

Red Hat Host

Enter the following commands in terminal:

  • sudo dnf install openssh-server to install ssh
  • sudo systemctl enable sshd to enable ssh
  • sudo systemctl start sshd to start ssh
  • sudo firewall-cmd --add-port-22/tcp --permanent and sudo firewall-cmd --reload to open SSH port
  • sudo systemctl status sshd to check if SSH is running

Step 2: Establish The Connection:

From Windows Client: Consult this article for additional information on SSH access: https://ask.eng.umd.edu/internal/131322

From MacOS Client:

From Linux Client:

  • Enter ssh -y username@desktop_hostname in terminal to establish the connection

ssh

  • You can find the hostname by entering the hostname command in terminal. The full hostname is hostname.eng.umd.edu

hostname

RDP (Graphical Connection)

Step 2: Establish the connection:

From a Windows Client

  • Open the Remote Desktop Connection app
  • Enter the full host name of the host
    • To find the host name, enter host name in the terminal, the host domain name is hostname.eng.umd.edu.  
  • In the next tab, click Yes and enter your credentials (username and password) to sign in
  • rdp with ip addressremote desktop warningxorg session

From a macOS Client

  • Launch the Windows App for Mac (previously Microsoft Remote Desktop): https://apps.apple.com/us/app/windows-app/id1295203466?mt=12
  • Add the host via its hostname 
    • On your Mac, choose Apple menu > System Settings, then click General in the sidebar. (You may need to scroll down.) Click About. View your computer’s name to the right of the Name field. The full host name is is computername.eng.umd.edu.
  • Select the connection and enter the credentials when prompted
  • add pc in Microsoft Remote Desktopenter IP addressdouble click to rdphit connect when prompted

From a Linux Client

Install Remmina on the Linux Client and connect to the Linux Host with Remmina. Consult the article below for additional information.

https://ask.eng.umd.edu/149840



Keywords:
ssh rdp redhat ubuntu linux 
Doc ID:
151773
Owned by:
Ojie O. in Engineering IT
Created:
2025-06-17
Updated:
2025-08-25
Sites:
University of Maryland Engineering IT