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 command shows active SSH connections to the local system?
Answer: ss -tnp | grep :22
`ss -tnp` lists TCP socket connections and filtering for `:22` shows active SSH sessions with their PIDs.
What is the purpose of the `~/.ssh/known_hosts` file?
Answer: Stores fingerprints of previously connected SSH servers
`known_hosts` caches the host key fingerprints of remote servers to detect man-in-the-middle attacks on future connections.
Which `sshd_config` directive sets the maximum number of concurrent unauthenticated SSH connections?
Answer: MaxStartups
`MaxStartups` limits unauthenticated connection attempts, helping protect against connection-based brute-force attacks.
How do you use SCP to copy a local file to a remote host's `/tmp` directory?
Answer: scp localfile user@host:/tmp/
`scp source user@host:destination` securely copies files over SSH; the colon separates the host from the remote path.
Which SSH client config file allows you to define aliases and per-host settings for SSH connections?
Answer: ~/.ssh/config
The `~/.ssh/config` file lets users define `Host` blocks with per-host settings like IdentityFile, Port, and User.
What `firewall-cmd` command permanently allows SSH traffic through the firewall?
Answer: firewall-cmd --permanent --add-service=ssh && firewall-cmd --reload
Using `--permanent` with `--add-service=ssh` and then `--reload` ensures the SSH rule survives reboots.