A system administrator is tasked with hardening a public-facing Linux server. A key requirement is to display a legal disclaimer to anyone attempting a remote connection via SSH. This message must be displayed before the user is prompted to authenticate. The administrator has already enabled the banner feature in the SSH daemon's configuration file. Which file should be created or edited to contain the disclaimer text?
The correct answer is /etc/issue.net. This file is the conventional location for a text banner that is displayed to users connecting over a network before the login prompt is shown. For this to work with SSH, the Banner /etc/issue.net directive must be set in the /etc/ssh/sshd_config file.
/etc/motd is incorrect because the 'Message of the Day' is displayed only after a user successfully authenticates and logs in.
/etc/issue is incorrect because it is primarily used to display a banner for local console logins (TTYs), not for network logins.
/etc/ssh/sshd_config is incorrect because this file is used to configure the SSH service, including specifying the path to the banner file, but it does not contain the banner text itself.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of /etc/issue.net?
Open an interactive chat with Bash
How is /etc/issue different from /etc/issue.net?
Open an interactive chat with Bash
What is the role of /etc/motd, and how does it differ from /etc/issue.net?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access