CompTIA Linux+ — Security and Troubleshooting flashcards
10 of 77 cards free to study here · 2 topics · the whole deck is built into Willys
Hardening and fixing Linux for Linux+: SSH keys and sshd settings, sudoers and PAM, SELinux (and AppArmor, no longer in XK0-006), firewalld, ufw and nftables, file integrity and auditd, the journal and /var/log, and diagnosing storage, CPU, memory, network and boot faults with the right commands.
Learn deck · part of CompTIA Linux+ · written against: Current Linux+ exam objectives (topics common to XK0-005 and its successor). Updated 2026-10-10.
Study the free sample
10 cards from the deck as they are. Flip, rate yourself, filter by topic; your progress stays in this browser.
Tap the card or press Space to flip
The 10 sample cards as a list
-
Which sshd_config settings stop direct root logins and password authentication?Security › SSH and Remote Access
PermitRootLogin noandPasswordAuthentication noin /etc/ssh/sshd_config, followed by a reload of sshd.
Watch out: a file in /etc/ssh/sshd_config.d/ that sets the same option can override the main file, so check the result withsshd -T; confirm key-based login works in a second session first so you cannot lock yourself out. -
Which commands create an Ed25519 key pair and install the public key on a server?Security › SSH and Remote Access
ssh-keygen -t ed25519creates the pair;ssh-copy-id admin@server01appends the public key to ~/.ssh/authorized_keys on the server. -
Key login fails, and the server log complains about bad ownership or modes. What does sshd expect?With StrictModes on, the user's home directory, ~/.ssh and authorized_keys must be owned by the user and not writable by others — typically 700 on ~/.ssh and 600 on authorized_keys.Security › SSH and Remote Access
-
What does a passphrase on an SSH private key protect against, and how does ssh-agent keep it convenient?If the key file is stolen, the passphrase stops it being used. ssh-agent holds the decrypted key in memory for the session (Security › SSH and Remote Access
ssh-addloads it), so the passphrase is typed once. -
An SSH client warns that the remote host identification has changed. What does it mean, and what should the admin do?The server's host key no longer matches the entry in known_hosts — either the server was rebuilt or someone is intercepting the connection. Verify the new fingerprint out of band before removing the old entry withSecurity › SSH and Remote Access
ssh-keygen -R server01. -
Which journalctl command shows only messages of priority error and worse from the current boot?Troubleshooting › Logs
journalctl -b -p err— -b limits it to this boot and -p err to error and more severe priorities. -
How do you follow one service's log live with journalctl?Troubleshooting › Logs
journalctl -u nginx -f— -u selects the unit and -f follows new entries as they arrive. -
After a reboot,
journalctl -b -1reports that no previous boot exists. Why, and how is it fixed?The journal is volatile, kept only in /run/log/journal. Create /var/log/journal or setTroubleshooting › LogsStorage=persistentin /etc/systemd/journald.conf, then restart systemd-journald. -
How can journalctl show only the logs from a particular time window?With --since and --until, e.g.Troubleshooting › Logs
journalctl --since "09:00" --until "10:30"orjournalctl --since "2 hours ago". -
On a Red Hat-family host, which file collects authentication messages such as failed SSH logins, and what is the Debian and Ubuntu equivalent?/var/log/secure on Red Hat-family systems and /var/log/auth.log on Debian and Ubuntu; on systemd hosts the same events are also in the journal.Troubleshooting › Logs
Watch out: Debian 12 and later no longer install rsyslog by default, so a fresh Debian system has no auth.log; read the events with journalctl.
Unlock the whole deck
You are studying a free 10-card sample. All 77 cards of CompTIA Linux+ — Security and Troubleshooting, the other 2 CompTIA Linux+ decks, and spaced-repetition scheduling are built into Willys. 14-day free trial, then $14.99 a year.
In Willys, tap Exam Library at the top of your Decks (or Browse Exam Library… under the + button), find the exam on its shelf or by search, tick it and tap Add.
More CompTIA Linux+ decks
← All CompTIA Linux+ decks, with the study guide and topic outline.
About these cards
Review status: Second-reader reviewed, with corrections applied.
Checked against:
- CompTIA Linux+ exam objectives — topic outline only; no text copied. Tags follow the four XK0-005 domains; as of October 2026 the current exam is XK0-006 (launched 2025-07-15), and XK0-005 retired on 2026-01-13.
These are independent study notes written for Willys. They are not official exam material, may contain mistakes, and are no substitute for your course, your teacher or the exam owner's own publications. Found an error? Tell us — corrections ship as a new version of the deck.
CompTIA® and Linux+® are registered trademarks of CompTIA, Inc. Linux® is the registered trademark of Linus Torvalds. This product is not affiliated with or endorsed by CompTIA.
Use of these pages is covered by our Terms of Use.