RHCSA SSH and Remote Access Configuration Flashcards
6 cards from real RHCSA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 RHCSA SSH and Remote Access Configuration flashcards as text
Which file contains the system-wide SSH server configuration on RHEL?
Answer: /etc/ssh/sshd_config
The SSH daemon reads its server-side configuration from `/etc/ssh/sshd_config` on RHEL and most Linux distributions.
What command generates an SSH key pair for key-based authentication?
Answer: ssh-keygen
`ssh-keygen` generates a new public/private SSH key pair, defaulting to `~/.ssh/id_rsa` and `~/.ssh/id_rsa.pub`.
Which command copies your public SSH key to a remote host for passwordless login?
Answer: ssh-copy-id user@host
`ssh-copy-id` appends your public key to the remote user's `~/.ssh/authorized_keys` file automatically.
Where is the authorized public keys file stored for SSH key-based login on RHEL?
Answer: ~/.ssh/authorized_keys
The SSH daemon checks `~/.ssh/authorized_keys` in the target user's home directory for permitted public keys.
Which `sshd_config` directive disables root login over SSH?
Answer: PermitRootLogin no
Setting `PermitRootLogin no` in `/etc/ssh/sshd_config` prevents the root account from authenticating via SSH.
After editing `/etc/ssh/sshd_config`, what command applies the changes?
Answer: systemctl restart sshd
You must restart the `sshd` service with `systemctl restart sshd` to apply any configuration file changes.
Written and edited by Nathan Beja, founder of Practice Test Geeks, with AI assistance. Exam facts are checked against the official sources linked below. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- redhat.com — Test delivery, retake policy, score release, renewal, score validity, exam information · verified Dec 2026