Skip to main content
In this tutorial, you will learn how to:
  • Perform a local graphical login on a CentOS VM
  • Connect remotely via Remote Desktop Protocol (RDP)
  • Access the shell in text mode using SSH

Table of Contents

  1. Local Graphical Login on CentOS
  2. Remote Graphical Login via RDP
  3. Text-Mode Login via SSH
  4. Summary and References

Local Graphical Login on CentOS

First, verify that your CentOS VM is set to boot into the graphical target with GNOME installed:
If the VM defaults to text mode, start the graphical login with sudo systemctl start gdm or install the necessary GNOME packages.
Once the GNOME login screen appears:
  1. Select your username.
  2. Enter your password.
  3. Click Sign In.
After GNOME loads, use the top-right menu to log out and prepare for the remote login demonstration.

Remote Graphical Login via RDP

To enable RDP access on a CentOS server, install and configure the xrdp service:
Exposing RDP (port 3389) on public networks may introduce security vulnerabilities. Use a VPN or SSH tunnel when possible.
Next, open your preferred RDP client (e.g., Microsoft Remote Desktop) and enter the server’s IP address:
  1. Launch the RDP client application.
  2. Input the IP address (for example, 192.168.0.18) and click Connect.
  3. At the login prompt, the username field may auto-fill with student. Enter the password and proceed.
The image shows a login screen for a remote desktop session with fields for session type, username, and password. The background is teal, and there's a logo with the text "Just connecting."
Once authenticated, verify the connection by checking the IP address in the RDP window’s title bar. Then, navigate to ActivitiesGNOME Terminal to open a terminal session.
The image shows a computer desktop with a dark-themed terminal window open, set against a blue geometric patterned wallpaper.

Text-Mode Login via SSH

From the GNOME Terminal in the RDP session, initiate an SSH connection to your CentOS VM at 192.168.0.17 with the aaron account:
When finished, close the terminal emulator and end your RDP session.

Summary and References

This lesson covered three login methods for CentOS: Further reading:

Watch Video