โ† All RHCSA Flashcard Decks

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
  1. 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.

  2. 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`.

  3. 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.

  4. 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.

  5. 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.

  6. 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.