> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Demo Log into local remote graphical and text mode consoles

> Shows how to authenticate into CentOS via local GNOME desktop, remote graphical RDP/xrdp, and remote text-mode SSH, with example workflows and security tips.

Welcome — in this lesson you'll learn three common ways to authenticate and open a session on Linux systems:

* Local graphical login (desktop sign-in).
* Remote graphical login using Remote Desktop (RDP/xrdp).
* Remote text-mode login using SSH.

These examples use CentOS with the GNOME desktop, an xrdp-enabled remote host, and a separate SSH-accessible host. The steps demonstrate typical workflows for desktop administrators and remote access scenarios.

## 1) Local graphical login (GNOME)

On a local machine with GNOME installed you sign in the same way you would on any desktop system: select your user, type the password, and click Sign In. GNOME loads your desktop session after authentication.

![A screenshot of a CentOS virtual machine login screen showing the user "Aaron" with the password field filled with masked dots. The window shows Sign In and Cancel buttons and the CentOS logo at the bottom.](https://mintcdn.com/kodekloud-c4ac6d9a/Xy4M1i0rmPde4pgi/images/Linux-System-Administration-for-Beginners/Essential-Commands/Demo-Log-into-local-remote-graphical-and-text-mode-consoles/centos-vm-login-aaron-masked-password.jpg?fit=max\&auto=format\&n=Xy4M1i0rmPde4pgi\&q=85\&s=ac2b676e9b1027ab0a022d0638db2eaa)

After confirming the session in GNOME you can log out when ready to demonstrate remote-login options.

## 2) Remote graphical login (RDP via xrdp)

If the remote host runs xrdp you can open a graphical session from any RDP client (Windows Remote Desktop Connection, Remmina, Microsoft Remote Desktop for macOS, etc.). Enter the remote IP address in the client and click Connect.

![A VirtualBox window showing a CentOS login screen. A Windows Remote Desktop Connection dialog is open on top, displaying the address 192.168.0.18 and username "student."](https://mintcdn.com/kodekloud-c4ac6d9a/Xy4M1i0rmPde4pgi/images/Linux-System-Administration-for-Beginners/Essential-Commands/Demo-Log-into-local-remote-graphical-and-text-mode-consoles/virtualbox-centos-login-rdp-192168018-student.jpg?fit=max\&auto=format\&n=Xy4M1i0rmPde4pgi\&q=85\&s=60e0eb376e9a8e75a090d0d353e10855)

When the connection is established the RDP client presents the remote login dialog. In this example the username `student` is pre-populated; type the password and click OK to start the remote graphical session.

![A remote desktop login dialog labeled "Login to LFCS-CentOS2" is centered on a plain teal desktop background. The window shows an xrdp logo, a session dropdown (Xvnc), the username "student", a masked password field, and OK/Cancel buttons.](https://mintcdn.com/kodekloud-c4ac6d9a/Xy4M1i0rmPde4pgi/images/Linux-System-Administration-for-Beginners/Essential-Commands/Demo-Log-into-local-remote-graphical-and-text-mode-consoles/xrdp-login-lfcs-centos2-student.jpg?fit=max\&auto=format\&n=Xy4M1i0rmPde4pgi\&q=85\&s=95909eba867f8841bdf1baa19092fe01)

When exposing RDP/xrdp to untrusted networks, secure the connection (VPN, firewall rules) and prefer key-based or multi-factor authentication where possible. RDP ports open to the public internet are a common attack vector.

After you are logged into the remote GNOME desktop, open Activities → GNOME Terminal to access a shell on that host.

## 3) Remote text-mode login (SSH from the remote graphical session)

From the GNOME terminal on the remote host you can SSH into another machine on the network. For example, from `student@lfcs-centos2` connect to the local machine used earlier (IP `192.168.0.17`) using the `aaron` account:

```bash theme={null}
[student@LFCS-CentOS2 ~]$ ssh aaron@192.168.0.17
aaron@192.168.0.17's password:
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Tue Oct 19 04:22:38 2021
[aaron@LFCS-CentOS ~]$
```

When SSH prompts for a password, keystrokes are not echoed — no characters, dots, or asterisks appear. This is normal: type the password and press Enter.

The message about activating the web console refers to Cockpit, a web-based server management interface. See the Cockpit project for more information: [https://cockpit-project.org/](https://cockpit-project.org/).

To end the SSH session and return to the remote desktop terminal:

```bash theme={null}
[aaron@LFCS-CentOS ~]$ exit
logout
[student@LFCS-CENTOS2 ~]$
```

Then close the terminal emulator and log out of the graphical session when finished.

## Quick comparison: login methods

| Method | Transport / Protocol | Typical client | Example / Notes |
| - | - | - | - |
| Local graphical | Local display manager (GDM with GNOME) | Local keyboard/monitor | Point-and-click account selection + password |
| Remote graphical | RDP (xrdp) | Windows Remote Desktop, Remmina, macOS RDP | Good for full desktop sessions; secure via VPN/firewall |
| Remote text-mode | SSH (OpenSSH) | ssh client (built-in on Linux/macOS, PuTTY on Windows) | Lightweight, scriptable, preferred for server administration |

## Links and references

* Remote Desktop Services (RDP): [https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/welcome-to-rds](https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/welcome-to-rds)
* xrdp project: [https://www.xrdp.org/](https://www.xrdp.org/)
* GNOME Terminal: [https://help.gnome.org/users/gnome-terminal/stable/](https://help.gnome.org/users/gnome-terminal/stable/)
* OpenSSH: [https://www.openssh.com/](https://www.openssh.com/)
* Cockpit project: [https://cockpit-project.org/](https://cockpit-project.org/)
* CentOS: [https://www.centos.org/](https://www.centos.org/)

That's it — you now know how to sign in locally, start a remote graphical session with xrdp, and initiate an SSH text-mode login from a remote desktop.

> **[Watch Video](https://learn.kodekloud.com/user/courses/linux-system-administration-for-beginners/module/cc1949d1-8171-4c8c-b69f-86f96cad0bbe/lesson/b9bdc6de-c9ba-4044-a631-705604f9ca53)**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.