SSH Remote Access
This article explains how to configure and use SSH to remotely connect to your EL server.
What You Will Learn
Section titled “What You Will Learn”- Verify the SSH service status
- Log in using password and key-based authentication
- Basic SSH security configuration
Verify SSH Service Status
Section titled “Verify SSH Service Status”EL 9 installs and enables the OpenSSH service by default:
$ sudo systemctl status sshd$ sudo ss -tlnp | grep :22Connect from a Client
Section titled “Connect from a Client”$ ssh username@server-ip$ ssh -p 2222 username@server-ipConfigure Key-Based Authentication
Section titled “Configure Key-Based Authentication”Key-based authentication is more secure than passwords and is recommended:
$ ssh-keygen -t ed25519 -C "your-comment"$ ssh-copy-id username@server-ipAfter verifying key-based login works, consider disabling password authentication. See SSH Security Hardening for details.
Next Steps
Section titled “Next Steps”- DNF Package Management — Start managing software packages
- SSH Security Hardening — Further harden SSH