Managing systems in the RHEL web console
Server management with a graphical web-based interface
Abstract
Providing feedback on Red Hat documentation Copy linkLink copied to clipboard!
We are committed to providing high-quality documentation and value your feedback. To help us improve, you can submit suggestions or report errors through the Red Hat Jira tracking system.
Procedure
Log in to the Jira website.
If you do not have an account, select the option to create one.
- Click Create in the top navigation bar.
- Enter a descriptive title in the Summary field.
- Enter your suggestion for improvement in the Description field. Include links to the relevant parts of the documentation.
- Click Create at the bottom of the dialogue.
Chapter 1. Getting started with the RHEL web console Copy linkLink copied to clipboard!
Learn how to install, configure, and monitor systems by using the RHEL web console. This graphical interface simplifies common administration tasks, such as managing logs, storage, and remote hosts.
1.1. What is the RHEL web console Copy linkLink copied to clipboard!
The RHEL web console is a web-based graphical interface for managing and monitoring your local system and Linux servers in your network environment.
In the RHEL web console, you can perform a wide range of administration tasks, including:
- Managing services
- Managing user accounts
- Managing and monitoring system services
- Configuring network interfaces and firewall
- Reviewing system logs
- Managing virtual machines
- Creating diagnostic reports
- Setting kernel dump configuration
- Configuring SELinux
- Updating software
- Managing system subscriptions
The web console uses the same system tools as the command line. If you change a setting in the terminal, the web console updates instantly. You can switch between the web interface and the terminal at any time.
You can also monitor the logs and performance of systems in the network environment in a graphical form. In addition, you can change the settings directly in the web console or through the terminal.
1.2. Installing and enabling the web console Copy linkLink copied to clipboard!
To access the RHEL web console, enable the cockpit.socket service first. RHEL 10 includes the web console installed by default in many installation variants. If this is not the case on your system, install the cockpit package before enabling the cockpit.socket service.
Procedure
If the web console is not installed by default on your installation variant, manually install the
cockpitpackage:dnf install cockpit
# dnf install cockpitCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enable and start the
cockpit.socketservice, which runs a web server:systemctl enable --now cockpit.socket
# systemctl enable --now cockpit.socketCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the web console was not installed by default on your installation variant and you are using a custom firewall profile, add the
cockpitservice tofirewalldto open port 9090 in the firewall:firewall-cmd --add-service=cockpit --permanent firewall-cmd --reload
# firewall-cmd --add-service=cockpit --permanent # firewall-cmd --reloadCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
- To verify the previous installation and configuration, open the web console.
1.3. Logging in to the web console Copy linkLink copied to clipboard!
When the cockpit.socket service is running and the corresponding firewall port is open, you can log in to the web console in your browser for the first time.
Prerequisites
Use one of the following browsers to open the web console:
- Mozilla Firefox 52 and later
- Google Chrome 57 and later
- Microsoft Edge 16 and later
System user account credentials
The RHEL web console uses a specific pluggable authentication modules (PAM) stack at
/etc/pam.d/cockpit. The default configuration allows logging in with the user name and password of any local account on the system.- Port 9090 is open in your firewall.
Procedure
In your web browser, enter the following address to access the web console:
https://localhost:9090
https://localhost:9090Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThis provides a web-console login on your local machine. If you want to log in to the web console of a remote system, see the Connecting to the web console from a remote machine section.
If you use a self-signed certificate, the browser displays a warning. Check the certificate, and accept the security exception to proceed with the login.
The console loads a certificate from the
/etc/cockpit/ws-certs.ddirectory and uses the last file with a.certextension in alphabetical order. To avoid having to grant security exceptions, install a certificate signed by a certificate authority (CA).- In the login screen, enter your system user name and password.
Click Log In.
After successful authentication, the RHEL web console interface opens.
1.4. Administrative access in the web console Copy linkLink copied to clipboard!
You can gain administrative access in the RHEL web console to perform privileged tasks, such as managing services, users, and networking, which require elevated permissions.
After you log in for the first time with a regular user account, the web console starts with limited access. When you have limited access, you can view the settings, but you cannot perform actions that require administrative privileges, such as installing packages.
To perform administrative tasks, click Limited access in the top panel of the web console page. You must have sudo access to the system and provide your user password to gain administrative access. From that point, the web console provides administrative access and preserves this setting across user sessions.
To switch back to limited access, click Administrative access in the top panel of the web console page.
The RHEL web console disallows root account logins by default for security reasons. Instead of logging in as root, use administrative access. If your scenario requires logging in as root, see Connecting to the web console from a remote machine as a root user
1.5. Disabling basic authentication in the web console Copy linkLink copied to clipboard!
Disable basic authentication for the RHEL web console to enforce stronger authentication methods, such as Kerberos. You can configure this setting in the cockpit.conf file to override default security behavior.
Use the none action to disable an authentication scheme and only allow authentication through GSSAPI and forms.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
-
You have
rootprivileges or permissions to enter administrative commands withsudo.
Procedure
Open or create the
cockpit.conffile in the/etc/cockpit/directory in a text editor of your preference, for example:vi cockpit.conf
# vi cockpit.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the following text:
[basic] action = none
[basic] action = noneCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the file.
Restart the web console for changes to take effect.
systemctl try-restart cockpit
# systemctl try-restart cockpitCopy to Clipboard Copied! Toggle word wrap Toggle overflow
1.6. Connecting to the web console from a remote machine Copy linkLink copied to clipboard!
You can connect to your web console interface from any client operating system and also from mobile phones or tablets.
Prerequisites
A device with a supported internet browser, such as:
- Mozilla Firefox 52 and later
- Google Chrome 57 and later
- Microsoft Edge 16 and later
The RHEL 10 system you want to access with an installed and accessible web console.
For instructions, see Installing and enabling the web console.
Procedure
- Open your web browser.
Type the remote server’s address in one of the following formats:
With the server’s hostname:
https://<server.hostname.example.com>:<port-number>
https://<server.hostname.example.com>:<port-number>Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:
https://example.com:9090
https://example.com:9090Copy to Clipboard Copied! Toggle word wrap Toggle overflow With the server’s IP address:
https://<server.IP_address>:<port-number>
https://<server.IP_address>:<port-number>Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:
https://192.0.2.2:9090
https://192.0.2.2:9090Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- After the login interface opens, log in with your RHEL system credentials.
1.7. Connecting to the web console from a remote machine as a root user Copy linkLink copied to clipboard!
You can connect to the RHEL web console as the root user to gain full administrative control of a remote host. Be sure to use SSH keys instead of a password for this privileged connection.
On new installations of RHEL 9.2 or later, the RHEL web console disallows root account logins by default for security reasons. You can allow the root login in the /etc/cockpit/disallowed-users file.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
Procedure
Open the
disallowed-usersfile in the/etc/cockpit/directory in a text editor of your preference, for example:vi /etc/cockpit/disallowed-users
# vi /etc/cockpit/disallowed-usersCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the file and remove the line for the
rootuser:List of users which are not allowed to login to Cockpit root
# List of users which are not allowed to login to Cockpit rootCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the changes and quit the editor.
Verification
Log in to the web console as a
rootuser.For details, see Logging in to the web console.
1.8. Logging in to the web console using a one-time password Copy linkLink copied to clipboard!
Log in to the RHEL web console by using a one-time password (OTP) to enhance security. You can use this two-factor authentication method in an IdM domain with enabled OTP.
It is possible to log in using a one-time password only if your system is part of an Identity Management (IdM) domain with enabled OTP configuration.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
- An Identity Management server with enabled OTP configuration.
- A configured hardware or software device generating OTP tokens.
Procedure
Open the RHEL web console in your browser:
-
Locally:
https://localhost:9090 -
Remotely with the server hostname:
https://example.com:9090 Remotely with the server IP address:
https://EXAMPLE.SERVER.IP.ADDR:9090If you use a self-signed certificate, the browser issues a warning. Check the certificate and accept the security exception to proceed with the login.
The console loads a certificate from the
/etc/cockpit/ws-certs.ddirectory and uses the last file with a.certextension in alphabetical order. To avoid having to grant security exceptions, install a certificate signed by a certificate authority (CA).
-
Locally:
- The Login window opens. In the Login window, enter your system user name and password.
- Generate a one-time password on your device.
- Enter the one-time password into a new field that displays in the web console interface after you confirm your password.
- Click Log in.
- Successful login takes you to the Overview page of the web console interface.
1.9. Adding a banner to the login page Copy linkLink copied to clipboard!
You can add a custom banner to the RHEL web console login page. This helps to display important security warnings or legal notices to users before they log in to the system.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
-
You have
rootprivileges or permissions to enter administrative commands withsudo.
Procedure
Open the
/etc/issue.cockpitfile in a text editor of your preference:vi /etc/issue.cockpit
# vi /etc/issue.cockpitCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the content you want to display as the banner to the file, for example:
This is an example banner for the RHEL web console login page.
This is an example banner for the RHEL web console login page.Copy to Clipboard Copied! Toggle word wrap Toggle overflow You cannot include any macros in the file, but you can use line breaks and ASCII art.
- Save the file.
Open the
cockpit.conffile in the/etc/cockpit/directory in a text editor of your preference, for example:vi /etc/cockpit/cockpit.conf
# vi /etc/cockpit/cockpit.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the following text to the file:
[Session] Banner=/etc/issue.cockpit
[Session] Banner=/etc/issue.cockpitCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the file.
Restart the web console for changes to take effect.
systemctl try-restart cockpit
# systemctl try-restart cockpitCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Open the web console login screen again to verify that the banner is now visible:
1.10. Configuring automatic idle lock in the web console Copy linkLink copied to clipboard!
You can enable the automatic idle lock and set the idle timeout for your system through the web console interface. This ensures your screen automatically locks after a period of inactivity, protecting the system from unauthorized access.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
-
You have
rootprivileges or permissions to enter administrative commands withsudo.
Procedure
Open the
cockpit.conffile in the/etc/cockpit/directory in a text editor of your preference, for example:vi /etc/cockpit/cockpit.conf
# vi /etc/cockpit/cockpit.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the following text to the file:
[Session] IdleTimeout=<X>
[Session] IdleTimeout=<X>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Substitute <X> with a number for a time period of your choice in minutes.
- Save the file.
Restart the web console for changes to take effect.
systemctl try-restart cockpit
# systemctl try-restart cockpitCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
- Check if the session logs you out after a set period of time.
1.11. Changing the web console listening port Copy linkLink copied to clipboard!
By default, the RHEL web console communicates through TCP port 9090. You can change the port number by overriding the default socket settings. This adjustment is often necessary to meet specific security or network policies.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
-
You have
rootprivileges or permissions to enter administrative commands withsudo. -
The
firewalldservice is running.
Procedure
Pick an unoccupied port, for example, <4488/tcp>, and instruct SELinux to allow the
cockpitservice to bind to that port:semanage port -a -t websm_port_t -p tcp <4488>
# semanage port -a -t websm_port_t -p tcp <4488>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note that a port can be used only by one service at a time, and thus an attempt to use an already occupied port implies the
ValueError: Port already definederror message.Open the new port and close the former one in the firewall:
firewall-cmd --service cockpit --permanent --add-port=<4488>/tcp firewall-cmd --service cockpit --permanent --remove-port=9090/tcp
# firewall-cmd --service cockpit --permanent --add-port=<4488>/tcp # firewall-cmd --service cockpit --permanent --remove-port=9090/tcpCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create an override file for the
cockpit.socketservice:systemctl edit cockpit.socket
# systemctl edit cockpit.socketCopy to Clipboard Copied! Toggle word wrap Toggle overflow In the following editor screen, which opens an empty
override.conffile located in the/etc/systemd/system/cockpit.socket.d/directory, change the default port for the web console from 9090 to the previously picked number by adding the following lines:[Socket] ListenStream= ListenStream=<4488>
[Socket] ListenStream= ListenStream=<4488>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note that the first
ListenStream=directive with an empty value is intentional. You can declare multipleListenStreamdirectives in a single socket unit and the empty value in the drop-in file resets the list and disables the default port 9090 from the original unit.ImportantInsert the previous code snippet between the lines starting with
# Anything between hereand# Lines below this. Otherwise, the system discards your changes.- Save the changes, and exit the editor.
Reload the changed configuration:
systemctl daemon-reload
# systemctl daemon-reloadCopy to Clipboard Copied! Toggle word wrap Toggle overflow Check that your configuration is working:
systemctl show cockpit.socket -p Listen Listen=[::]:4488 (Stream)
# systemctl show cockpit.socket -p Listen Listen=[::]:4488 (Stream)Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart
cockpit.socket:systemctl restart cockpit.socket
# systemctl restart cockpit.socketCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Open your web browser, and access the web console on the updated port, for example:
https://machine1.example.com:4488
https://machine1.example.com:4488Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 2. Installing and configuring web console by using RHEL system roles Copy linkLink copied to clipboard!
With the cockpit RHEL system role, you can automatically deploy and enable the web console on multiple RHEL systems.
2.1. Installing the web console by using the cockpit RHEL system role Copy linkLink copied to clipboard!
You can use the cockpit system role to automate installing and enabling the RHEL web console on multiple systems.
You use the cockpit system role to:
- Install the RHEL web console.
-
Allow the
firewalldandselinuxsystem roles to configure the system for opening new ports. -
Set the web console to use a certificate from the
ipatrusted certificate authority instead of using a self-signed certificate.
You do not have to call the firewall or certificate system roles in the playbook to manage the firewall or create the certificate. The cockpit system role calls them automatically as needed.
Prerequisites
- You have prepared the control node and the managed nodes.
- You are logged in to the control node as a user who can run playbooks on the managed nodes.
-
The account you use to connect to the managed nodes has
sudopermissions for these nodes.
Procedure
Create a playbook file, for example,
~/playbook.yml, with the following content:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The settings specified in the example playbook include the following:
cockpit_manage_selinux: true-
Allow using the
selinuxsystem role to configure SELinux for setting up the correct port permissions on thewebsm_port_tSELinux type. cockpit_manage_firewall: true-
Allow the
cockpitsystem role to use thefirewalldsystem role for adding ports. cockpit_certificates: <YAML_dictionary>By default, the RHEL web console uses a self-signed certificate. Alternatively, you can add the
cockpit_certificatesvariable to the playbook and configure the role to request certificates from an IdM certificate authority (CA) or to use an existing certificate and private key that is available on the managed node.For details about all variables used in the playbook, see the
/usr/share/ansible/roles/rhel-system-roles.cockpit/README.mdfile on the control node.
Validate the playbook syntax:
ansible-playbook --syntax-check ~/playbook.yml
$ ansible-playbook --syntax-check ~/playbook.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that this command only validates the syntax and does not protect against a wrong but valid configuration.
Run the playbook:
ansible-playbook ~/playbook.yml
$ ansible-playbook ~/playbook.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 3. Installing web console add-ons and creating custom pages Copy linkLink copied to clipboard!
Depending on how you want to use your Red Hat Enterprise Linux system, you can add additional available applications to the web console or create custom pages based on your use case.
3.1. Add-on applications for the RHEL web console Copy linkLink copied to clipboard!
Install optional add-on applications for the RHEL web console by using either the Applications page in the console or the command line. These add-ons provide tools for specific management tasks.
You can install add-on applications by using one of the following methods:
In the web console, click Applications and use the button in the list of available and already-installed applications.
In the terminal, use the
dnf installcommand:dnf install <add-on>
# dnf install <add-on>Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the previous command, replace <add-on> by a package name from the list of available add-on applications for the RHEL web console.
| Feature name | Package name | Usage |
|---|---|---|
| File manager |
| Managing files and directories in the standard web console interface |
| HA cluster management |
|
The |
| Image builder |
| Building customized operating system images |
| Machines |
|
Managing |
| PackageKit |
| Software updates and application installation (usually installed by default) |
| PCP |
| Persistent and more fine-grained performance data (installed on-demand from the UI) |
| Podman |
| |
| Session recording |
| Recording and managing user sessions |
| Storage |
|
Managing storage through |
[a]
Additional steps such as enabling the pcsd service might be required. See the Installing cluster software section in the Configuring and managing high availability clusters document for more information.
| ||
3.2. Creating new pages in the web console Copy linkLink copied to clipboard!
You can create custom pages in the RHEL web console by adding a package directory containing HTML and JavaScript files. This enables you to integrate customized functions and interfaces into the console.
For detailed information about adding custom pages, see Creating Plugins for the Cockpit User Interface on the Cockpit Project website and the Cockpit Packages section in the Cockpit Project Developer Guide.
3.3. Overriding the manifest settings in the web console Copy linkLink copied to clipboard!
You can modify the RHEL web console menu structure for all users or a specific user by overriding the default manifest settings. Create an override to adjust the visibility or order of menu items.
In the cockpit project, a package name is a directory name. A package contains the manifest.json file along with other files. Default settings are present in the manifest.json file. You can override the default cockpit menu settings by creating a <package_name>.override.json file at a specific location for the specified user.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
Procedure
Override manifest settings in the
<systemd>.override.jsonfile in a text editor of your choice, for example:To edit for all users, enter:
vi /etc/cockpit/<systemd>.override.json
# vi /etc/cockpit/<systemd>.override.jsonCopy to Clipboard Copied! Toggle word wrap Toggle overflow To edit for a single user, enter:
vi ~/.config/cockpit/<systemd>.override.json
# vi ~/.config/cockpit/<systemd>.override.jsonCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Edit the required file with the following details:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
The
nullvalue hides the services tab -
The
-1value moves the logs tab to the first place.
-
The
Restart the
cockpitservice:systemctl restart cockpit.service
# systemctl restart cockpit.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 4. Managing subscriptions in the web console Copy linkLink copied to clipboard!
You can manage your Red Hat product subscriptions in the Red Hat Enterprise Linux 10 web console. This functionality provides a graphical interface for viewing, registering, and managing system subscriptions.
4.1. Prerequisites Copy linkLink copied to clipboard!
- Your Red Hat Customer Portal or a subscription activation key.
4.2. Subscription management in the web console Copy linkLink copied to clipboard!
You can use the RHEL web console as a graphical interface for Red Hat Subscription Manager on your local system. This helps simplify the process of registering, managing, and viewing attached subscriptions.
The Subscription Manager connects to the Red Hat Customer Portal and verifies available:
- Active subscriptions
- Expired subscriptions
- Renewed subscriptions
If you want to renew the subscription or get a different one on the Red Hat Customer Portal, you do not have to update the Subscription Manager data manually.
The Subscription Manager synchronizes data with the Red Hat Customer Portal automatically.
4.3. Registering subscriptions with credentials in the web console Copy linkLink copied to clipboard!
You can register your RHEL system and attach subscriptions by using your Red Hat Customer Portal credentials directly in the web console.
Prerequisites
A valid user account on the Red Hat Customer Portal.
See the Create a Red Hat Login page.
- An active subscription for your RHEL system.
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
Procedure
- Log in to the RHEL 10 web console.
In the Health filed in the Overview page, click the Not registered warning, or click Subscriptions in the main menu to move to page with your subscription information.
- In the Overview field, click .
- In the Register system dialog box, select Account to register by using your account credentials.
- Enter your username.
- Enter your password.
Optional: Enter your organization’s name or ID.
If your account belongs to more than one organization on the Red Hat Customer Portal, you must add the organization name or organization ID. To get the org ID, go to your Red Hat contact point.
- If you do not want to connect your system to Red Hat Lightspeed, clear the Insights checkbox.
- Click .
4.4. Registering subscriptions with activation keys in the web console Copy linkLink copied to clipboard!
You can register a newly installed Red Hat Enterprise Linux with an activation key in the RHEL web console.
Prerequisites
- An activation key of your Red Hat product subscription.
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
Procedure
- Log in to the RHEL 10 web console.
In the Health field on the Overview page, click the Not registered warning, or click Subscriptions in the main menu to move to the page with your subscription information.
.
- In the Overview filed, click .
- In the Register system dialog box, select Activation key to register using an activation key.
- Enter your key or keys.
Enter your organization’s name or ID.
To get the organization ID, go to your Red Hat contact point.
- If you do not want to connect your system to Red Hat Lightspeed, clear the Insights checkbox.
- Click .
Chapter 5. Managing remote systems in the web console Copy linkLink copied to clipboard!
You can connect to remote systems and manage them in the Red Hat Enterprise Linux web console, enabling you to monitor and administer systems across your network from a single central interface.
For security reasons, use the following network setup of remote systems managed by the web console:
- Configure one system as a bastion host. The bastion host is a system with an opened HTTPS port.
- All other systems communicate through SSH.
With the web interface running on the bastion host, you can reach all other systems through the SSH protocol.
5.1. Connecting to a remote host using SSH from the web console login page Copy linkLink copied to clipboard!
You can connect to a remote system by using the SSH protocol directly from the login page of the RHEL web console. After you log in remotely, connection traffic is encrypted, and you can manage the remote system in the graphical interface of the web console.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
-
The
cockpit-systempackage is installed on the remote system. -
The
sshdservice runs on the remote system, and the corresponding port is allowed in the firewall.
Procedure
- Open the web console login page.
- Specify the username on the remote host in the User name field.
- Click Other options to reveal the Connect to text field.
Specify the remote host you want to connect to using SSH in the Connect to text field. If you do not specify any port, the web console attempts to connect to port 22 on the specified remote host.
- Click Log in.
5.2. Adding remote hosts to the web console Copy linkLink copied to clipboard!
When logged in to the RHEL web console, you can switch between the local system and multiple remote hosts through the host switcher in the top left corner of the Overview page. You can connect to and manage a remote system after you add its credentials to the host switcher.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
Procedure
-
In your terminal, open or create the
cockpit.conffile in the/etc/cockpit/directory in a text editor of your preference. Add the following text:
[WebService] AllowMultiHost=yes
[WebService] AllowMultiHost=yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow WarningThe host switcher is deprecated and disabled by default. Due to web technology limitations, this feature cannot be secure. Do not enable the host switcher if you connect to untrusted hosts because all connected systems can make arbitrary changes to the rest of the connected. As a more secure alternative, you can either use the web console login page with the secure limit of one host in a web browser session or the Cockpit Client Flatpak.
- Save the file.
Restart the web console to ensure the changes take effect.
systemctl try-restart cockpit
# systemctl try-restart cockpitCopy to Clipboard Copied! Toggle word wrap Toggle overflow In the RHEL web console, click
<username>@<hostname>in the top left corner of the Overview page.
- In the drop-down menu, click .
- In the Add new host dialog box, specify the host you want to add.
Optional: Add the username for the account you want to connect to.
You can use any user account of the remote system. However, if you use the credentials of a user account without administration privileges, you cannot perform administration tasks.
If you use the same credentials as on your local system, the web console authenticates remote systems automatically every time you log in.
ImportantThe web console does not save passwords used to log in to remote systems.
- Optional: Click the Color field to change the color of the system.
- Click .
Verification
-
The new host is listed in the
<username>@<hostname>drop-down menu.
5.3. Enabling SSH login for a new host Copy linkLink copied to clipboard!
You can enable secure SSH login for a new remote host that uses key-based authentication in the RHEL web console.
If you already have an SSH key on your system, the web console uses the existing one; otherwise, it can create a key.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
You considered security risks and enabled the host switcher.
See Adding remote hosts to the web console for more information.
Procedure
- Log in to the RHEL 10 web console.
In the RHEL web console, click
<username>@<hostname>in the top left corner of the Overview page.
- In the drop-down menu, click .
- In the Add new host dialog box, specify the host you want to add. If you connect to the host for the first time, you must click in the following dialog box.
The password dialog box differs depending on the existence of an SSH key file on the host:
- If you already have the SSH key for the host, select the Authorize SSH key option.
- If you do not have the SSH key, select the Create a new SSH key and authorize it option. The web console creates the key.
- Add and confirm a password for the SSH key.
- Click .
Verification
- Log out.
- Log back in.
- Click in the Not connected to host screen.
- Select SSH key as your authentication option.
- Enter your key password.
- Click .
5.4. Configuring smart-card authentication for SSH logins in the web console Copy linkLink copied to clipboard!
After logging in to a user account on the RHEL web console, you can connect to remote machines by using the SSH protocol. You can use the constrained delegation feature to use SSH without being asked to authenticate again.
In the example procedure, the web console session runs on the myhost.idm.example.com host, and you configure the console to access the remote.idm.example.com host by using SSH on behalf of the authenticated user.
Prerequisites
-
You have obtained an IdM
adminticket-granting ticket (TGT) onmyhost.idm.example.com. -
You have
rootaccess toremote.idm.example.com. - The host that runs the web console is a member of an IdM domain.
Procedure
In the Terminal page, verify that the web console has created a Service for User to Proxy (S4U2proxy) Kerberos ticket in the user session:
klist … Valid starting Expires Service principal 05/20/25 09:19:06 05/21/25 09:19:06 HTTP/myhost.idm.example.com@IDM.EXAMPLE.COM …
$ klist … Valid starting Expires Service principal 05/20/25 09:19:06 05/21/25 09:19:06 HTTP/myhost.idm.example.com@IDM.EXAMPLE.COM …Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a list of the target hosts that the delegation rule can access:
Create a service delegation target:
ipa servicedelegationtarget-add cockpit-target
$ ipa servicedelegationtarget-add cockpit-targetCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the target host to the delegation target:
ipa servicedelegationtarget-add-member cockpit-target \ --principals=host/remote.idm.example.com@IDM.EXAMPLE.COM
$ ipa servicedelegationtarget-add-member cockpit-target \ --principals=host/remote.idm.example.com@IDM.EXAMPLE.COMCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Allow
cockpitsessions to access the target host list by creating a service delegation rule and adding the HTTP service Kerberos principal to it:Create a service delegation rule:
ipa servicedelegationrule-add cockpit-delegation
$ ipa servicedelegationrule-add cockpit-delegationCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the web console client to the delegation rule:
ipa servicedelegationrule-add-member cockpit-delegation \ --principals=HTTP/myhost.idm.example.com@IDM.EXAMPLE.COM
$ ipa servicedelegationrule-add-member cockpit-delegation \ --principals=HTTP/myhost.idm.example.com@IDM.EXAMPLE.COMCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the delegation target to the delegation rule:
ipa servicedelegationrule-add-target cockpit-delegation \ --servicedelegationtargets=cockpit-target
$ ipa servicedelegationrule-add-target cockpit-delegation \ --servicedelegationtargets=cockpit-targetCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Enable Kerberos authentication on the
remote.idm.example.comhost:-
Connect through SSH to
remote.idm.example.comasroot. -
Add the
GSSAPIAuthentication yesline to the/etc/ssh/sshd_configfile.
-
Connect through SSH to
Restart the
sshdservice onremote.idm.example.comso that the changes take effect immediately:systemctl try-restart sshd.service
$ systemctl try-restart sshd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.5. Using Ansible to configure smart-card authentication for SSH logins in the web console Copy linkLink copied to clipboard!
After logging in to a user account on the RHEL web console, you can connect to remote machines by using the SSH protocol. You can use the servicedelegationrule and servicedelegationtarget Ansible modules to configure the web console for the constrained delegation feature, which enables SSH connections without being asked to authenticate again.
In the example procedure, the web console session runs on the myhost.idm.example.com host and you configure it to access the remote.idm.example.com host by using SSH on behalf of the authenticated user.
Prerequisites
-
You have obtained an IdM
adminticket-granting ticket (TGT) onmyhost.idm.example.com. -
You have
rootaccess toremote.idm.example.com. - The host that runs the web console is a member of an IdM domain.
You have configured your Ansible control node to meet the following requirements:
-
You have installed the
ansible-freeipapackage. -
The example assumes you have created an Ansible inventory file with the fully-qualified domain name (FQDN) of the IdM server in the
~/MyPlaybooks/directory. The example assumes that the
secret.ymlAnsible vault stores the admin password in theipaadmin_passwordvariable.See the
/usr/share/doc/ansible-freeipa/playbooks/servicedelegationtargetand/usr/share/doc/ansible-freeipa/playbooks/servicedelegationruledirectories for example playbooks and theREADME-servicedelegationrule.mdandREADME-servicedelegationtarget.mdfiles in the/usr/share/doc/ansible-freeipa/directory for more information.
-
You have installed the
-
The target node, that is the node on which the
ansible-freeipamodule runs, is part of the IdM domain as an IdM client, server, or replica.
Procedure
Navigate to your
~/MyPlaybooks/directory:cd ~/MyPlaybooks/
$ cd ~/MyPlaybooks/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Store your sensitive variables in an encrypted file:
Create the vault:
ansible-vault create secret.yml New Vault password: <vault_password> Confirm New Vault password: <vault_password>
$ ansible-vault create secret.yml New Vault password: <vault_password> Confirm New Vault password: <vault_password>Copy to Clipboard Copied! Toggle word wrap Toggle overflow After the
ansible-vault createcommand opens an editor, enter the sensitive data in the<key>: <value>format:ipaadmin_password: <admin_password>
ipaadmin_password: <admin_password>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the changes, and close the editor. Ansible encrypts the data in the vault.
In the Terminal page, verify that the web console has created a Service for User to Proxy (S4U2proxy) Kerberos ticket in the user session:
klist … Valid starting Expires Service principal 05/20/25 09:19:06 05/21/25 09:19:06 HTTP/myhost.idm.example.com@IDM.EXAMPLE.COM …
$ klist … Valid starting Expires Service principal 05/20/25 09:19:06 05/21/25 09:19:06 HTTP/myhost.idm.example.com@IDM.EXAMPLE.COM …Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a
web-console-smart-card-ssh.ymlplaybook with the following content:Create a task that ensures the presence of a delegation target:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a task that adds the target host to the delegation target:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a task that ensures the presence of a delegation rule:
- name: Ensure servicedelegationrule delegation-rule is present ipaservicedelegationrule: ipaadmin_password: "{{ ipaadmin_password }}" name: web-console-delegation-rule- name: Ensure servicedelegationrule delegation-rule is present ipaservicedelegationrule: ipaadmin_password: "{{ ipaadmin_password }}" name: web-console-delegation-ruleCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add a task that ensures that the Kerberos principal of the web console client service is a member of the constrained delegation rule:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a task that ensures that the constrained delegation rule is associated with the web-console-delegation-target delegation target:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a task that enable Kerberos authentication on
remote.idm.example.com:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Save the file.
Run the Ansible playbook. Specify the playbook file, the file storing the password protecting the
secret.ymlfile, and the inventory file:ansible-playbook --vault-password-file=password_file -v -i inventory web-console-smart-card-ssh.yml
$ ansible-playbook --vault-password-file=password_file -v -i inventory web-console-smart-card-ssh.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 6. Configuring SSO authentication for the RHEL web console in the IdM domain Copy linkLink copied to clipboard!
Configure Single Sign-On (SSO) authentication for the RHEL web console by using Identity Management (IdM). With SSO enabled, IdM users with a Kerberos ticket can access the web console without re-entering credentials.
You can use Single Sign-on (SSO) authentication provided by Identity Management (IdM) in the RHEL web console to leverage the following advantages:
- IdM domain administrators can use the web console to manage local systems.
- Users with a Kerberos ticket in the IdM domain do not have to provide login credentials to access the web console.
- All hosts known to the IdM domain are accessible through SSH from the local instance of the web console.
- Certificate configuration is not necessary. The console’s web server automatically switches to a certificate issued by the IdM certificate authority and accepted by browsers.
Configuring SSO for logging into the web console requires:
- You must add systems to the IdM domain by using the web console.
- If you want to use Kerberos for authentication, you must obtain a Kerberos ticket on your systems.
- Allow administrators on the IdM server to use any command on any host.
6.1. Joining a RHEL system to an IdM domain using the web console Copy linkLink copied to clipboard!
You can join a RHEL system to an IdM domain directly in the RHEL web console. This integrates the system into the centralized identity management environment, enabling IdM users to log in.
Prerequisites
- The IdM domain is running and reachable from the client you want to join.
- You have the IdM domain administrator credentials.
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
Procedure
- Log in to the RHEL 10 web console.
- In the Configuration field of the Overview tab click Join Domain.
- In the Join a Domain dialog box, enter the hostname of the IdM server in the Domain Address field.
- In the Domain administrator name field, enter the username of the IdM administration account.
- In the Domain administrator password, add a password.
- Click .
Verification
- If the RHEL 10 web console does not display an error, the system joined to the IdM domain and you can see the domain name in the System screen.
To verify that the user is a member of the domain, click the Terminal page and type the
idcommand:id
$ idCopy to Clipboard Copied! Toggle word wrap Toggle overflow euid=548800004(example_user) gid=548800004(example_user) groups=548800004(example_user) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
euid=548800004(example_user) gid=548800004(example_user) groups=548800004(example_user) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023Copy to Clipboard Copied! Toggle word wrap Toggle overflow
6.2. Logging in to the web console using Kerberos authentication Copy linkLink copied to clipboard!
You can log in to the RHEL web console by using Kerberos authentication. If you already have a valid Kerberos ticket from your IdM domain, you can access the console without re-entering your password.
With SSO, you usually do not have any administrative privileges in the web console. This only works if you configure passwordless sudo. The web console does not prompt for a sudo password interactively.
Prerequisites
IdM domain running and reachable in your company environment.
For details, see Joining a RHEL system to an IdM domain using the web console.
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
-
If the system does not use a Kerberos ticket managed by the SSSD client, request the ticket with the
kinitutility manually.
Procedure
Log in to the RHEL web console by entering the following URL in your web browser:
https://<dns_name>:9090
https://<dns_name>:9090Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 7. Configuring smart card authentication with the web console for centrally managed users Copy linkLink copied to clipboard!
Configure smart card authentication for centrally managed users in the RHEL web console. This security measure helps to provide physical access control for administrative and regular users.
You can configure smart card authentication in the RHEL web console for users who are centrally managed by:
- Identity Management
- Active Directory which is connected in the cross-forest trust with Identity Management
7.1. Prerequisites Copy linkLink copied to clipboard!
The system for which you want to use the smart card authentication must be a member of an Active Directory or Identity Management domain.
For details about joining the RHEL system into a domain by using the web console, see Joining a RHEL system to an IdM domain by using the web console.
The certificate used for the smart card authentication must be associated with a particular user in Identity Management or Active Directory.
For more details about associating a certificate with the user in Identity Management, see Adding a certificate to a user entry in the IdM Web UI or Adding a certificate to a user entry in the IdM CLI.
7.2. Smart-card authentication for centrally managed users Copy linkLink copied to clipboard!
Use smart card authentication to provide strong authentication for centrally managed users. This method links the user’s account to a physical credential, enhancing security for systems within the Identity Management domain.
A smart card is a physical device, which can provide personal authentication by using certificates stored on the card. Personal authentication means that you can use smart cards in the same way as user passwords.
You can store user credentials on the smart card in the form of a private key and a certificate. Special software and hardware is used to access them. You insert the smart card into a reader or a USB socket and supply the PIN code for the smart card instead of providing your password.
Identity Management (IdM) supports smart-card authentication with:
User certificates issued by the Active Directory Certificate Service (ADCS) certificate authority.
For details, see Configuring certificates issued by ADCS for smart card authentication in IdM.
If you want to start using smart card authentication, see the hardware requirements: Smart Card support in RHEL8+.
7.3. Enabling smart-card authentication for the web console Copy linkLink copied to clipboard!
Enable smart card authentication specifically for the RHEL web console. This lets centrally managed users securely log in by using their smart card credentials and the IdM domain policy.
To use smart-card authentication in the web console, enable this authentication method in the cockpit.conf file. Additionally, you can disable password authentication in the same file.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
Procedure
- Log in to the RHEL 10 web console.
- Click Terminal.
In the
/etc/cockpit/cockpit.conf, set theClientCertAuthenticationtoyes:[WebService] ClientCertAuthentication = yes
[WebService] ClientCertAuthentication = yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: Disable password-based authentication in
cockpit.confwith:[Basic] action = none
[Basic] action = noneCopy to Clipboard Copied! Toggle word wrap Toggle overflow This configuration disables password authentication and you must always use the smart card.
Restart the web console to ensure that the
cockpit.serviceaccepts the change:systemctl restart cockpit
# systemctl restart cockpitCopy to Clipboard Copied! Toggle word wrap Toggle overflow
7.4. Logging in to the web console with smart cards Copy linkLink copied to clipboard!
You can log in to the RHEL web console with your smart card credentials. This uses the configured smart card policy for secure access by centrally managed users.
Prerequisites
- A valid certificate stored in your smart card that is associated to a user account created in an Active Directory or Identity Management domain.
- PIN to unlock the smart card.
- The smart card has been put into the reader.
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
Procedure
Log in to the RHEL 10 web console.
The browser asks you to add the PIN protecting the certificate stored on the smart card.
- In the Password Required dialog box, enter PIN and click OK.
- In the User Identification Request dialog box, select the certificate stored in the smart card.
Select Remember this decision.
The system does not open this window next time.
NoteThis step does not apply to Google Chrome users.
Click OK.
You are now connected and the web console displays its content.
7.5. Enabling passwordless sudo authentication for smart-card users Copy linkLink copied to clipboard!
You can enable passwordless sudo authentication for smart-card users. This enables users to perform administrative tasks without entering a password, further improving operational efficiency and security.
As an alternative, if you use RHEL Identity Management, you can declare the initial web console certificate as trusted for authentication with sudo, SSH, or other services. For that purpose, the web console automatically creates an S4U2Proxy Kerberos ticket in the user session.
In the following example, the web console session runs on host.example.com and is trusted to access its own host with sudo. Additionally, the example steps add a second trusted host - remote.example.com.
Prerequisites
- Identity Management is installed.
- Active Directory is connected in the cross-forest trust with Identity Management.
- Your smart card is set up to log in to the web console. See Configuring smart-card authentication with the web console for centrally managed users for more information.
Procedure
Set up constraint delegation rules to list which hosts the ticket can access.
Create the following example delegation:
Enter the following commands to add a list of target machines a particular rule can access:
ipa servicedelegationtarget-add cockpit-target
# ipa servicedelegationtarget-add cockpit-targetCopy to Clipboard Copied! Toggle word wrap Toggle overflow ipa servicedelegationtarget-add-member cockpit-target \ --principals=host/host.example.com@EXAMPLE.COM \ --principals=host/remote.example.com@EXAMPLE.COM
# ipa servicedelegationtarget-add-member cockpit-target \ --principals=host/host.example.com@EXAMPLE.COM \ --principals=host/remote.example.com@EXAMPLE.COMCopy to Clipboard Copied! Toggle word wrap Toggle overflow To enable the web console sessions (HTTP/principal) to access that host list, use the following commands:
ipa servicedelegationrule-add cockpit-delegation
# ipa servicedelegationrule-add cockpit-delegationCopy to Clipboard Copied! Toggle word wrap Toggle overflow ipa servicedelegationrule-add-member cockpit-delegation \ --principals=HTTP/host.example.com@EXAMPLE.COM
# ipa servicedelegationrule-add-member cockpit-delegation \ --principals=HTTP/host.example.com@EXAMPLE.COMCopy to Clipboard Copied! Toggle word wrap Toggle overflow ipa servicedelegationrule-add-target cockpit-delegation \ --servicedelegationtargets=cockpit-target
# ipa servicedelegationrule-add-target cockpit-delegation \ --servicedelegationtargets=cockpit-targetCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Enable GSS authentication in the corresponding services:
For
sudo, enable thepam_sss_gssmodule in the/etc/sssd/sssd.conffile:As
root, add an entry for your domain to the/etc/sssd/sssd.confconfiguration file.[domain/example.com] pam_gssapi_services = sudo, sudo-i
[domain/example.com] pam_gssapi_services = sudo, sudo-iCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the module in the
/etc/pam.d/sudofile on the first line.auth sufficient pam_sss_gss.so
auth sufficient pam_sss_gss.soCopy to Clipboard Copied! Toggle word wrap Toggle overflow
For SSH, update the
GSSAPIAuthenticationoption in the/etc/ssh/sshd_configfile toyes.WarningThe delegated S4U ticket is not forwarded to remote SSH hosts when connecting to them from the web console. Authenticating to
sudoon a remote host with your ticket will not work.
Verification
- Log in to the web console using a smart card.
- Click the Limited access button.
- Authenticate using your smart card.
- Alternatively: Try to connect to a different host with SSH.
7.6. Limiting user sessions and memory to prevent a DoS attack Copy linkLink copied to clipboard!
Limit user sessions and memory consumption for the web console service by changing the corresponding systemd configuration. This measure helps mitigate the risk of denial-of-service (DoS) attacks on the cockpit-ws web server.
A certificate authentication is protected by separating and isolating instances of the cockpit-ws web server against attackers who wants to impersonate another user. However, this introduces a potential DoS attack: A remote attacker could create a large number of certificates and send a large number of HTTPS requests to cockpit-ws each using a different certificate.
To prevent such DoS attacks, the collective resources of these web server instances are limited. By default, limits on the number of connections and memory usage are set to 200 threads and 75 % as a soft limit or 90 % as a hard limit.
The example procedure demonstrates resource protection by limiting the number of connections and the amount of allocated memory.
Procedure
In the terminal, open the
system-cockpithttps.sliceconfiguration file:systemctl edit system-cockpithttps.slice
# systemctl edit system-cockpithttps.sliceCopy to Clipboard Copied! Toggle word wrap Toggle overflow Limit the
TasksMaxto 100 andCPUQuotato 30%:[Slice] # change existing value TasksMax=100 # add new restriction CPUQuota=30%
[Slice] # change existing value TasksMax=100 # add new restriction CPUQuota=30%Copy to Clipboard Copied! Toggle word wrap Toggle overflow To apply the changes, restart the system:
systemctl daemon-reload
# systemctl daemon-reloadCopy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl stop cockpit
# systemctl stop cockpitCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 8. Satellite host management and monitoring in the web console Copy linkLink copied to clipboard!
After enabling RHEL web console integration on a Red Hat Satellite Server, you can manage many hosts at scale in the web console.
Red Hat Satellite is a system management solution for deploying, configuring, and maintaining your systems across physical, virtual, and cloud environments. Satellite provides provisioning, remote management and monitoring of multiple Red Hat Enterprise Linux deployments with a centralized tool.
By default, RHEL web console integration is disabled in Red Hat Satellite. To access RHEL web console features for your hosts from within Red Hat Satellite, you must first enable RHEL web console integration on a Red Hat Satellite Server.
To enable the RHEL web console on your Satellite Server, enter the following command as root:
satellite-installer --enable-foreman-plugin-remote-execution-cockpit --reset-foreman-plugin-remote-execution-cockpit-ensure
# satellite-installer --enable-foreman-plugin-remote-execution-cockpit --reset-foreman-plugin-remote-execution-cockpit-ensure