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 SSH option allows you to log in as a specific user to a remote host?
Answer: ssh -l username host
The `-l` flag specifies the remote login name; alternatively, `ssh username@host` achieves the same result.
What `sshd_config` setting limits SSH access to only specific users?
Answer: AllowUsers
`AllowUsers` in `sshd_config` accepts a space-separated list of usernames permitted to log in via SSH.
Which port does SSH use by default?
Answer: 22
SSH operates on TCP port 22 by default, though this can be changed in `sshd_config` for security.
What directive in `sshd_config` enables or disables password authentication?
Answer: PasswordAuthentication
`PasswordAuthentication yes|no` controls whether users can authenticate using a password instead of a key.
Which file on RHEL must be updated to allow the new SSH port through the SELinux policy?
Answer: semanage port -a -t ssh_port_t -p tcp NEWPORT
You use `semanage port -a -t ssh_port_t -p tcp ` to add the new port to the SELinux SSH port type policy.
What command verifies the syntax of the SSH server configuration file without restarting the service?
Answer: sshd -t
`sshd -t` parses the configuration file and reports syntax errors without starting or restarting the daemon.
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