A Linux administrator is hardening a server and needs to display a security banner to all users connecting via SSH. The banner must appear immediately upon connection, before the user is prompted for authentication credentials. Which file should the administrator populate with the banner text to achieve this, assuming the SSH daemon is configured appropriately?
The correct answer is /etc/issue.net. This file is specifically intended for displaying a banner to users connecting over a network before authentication. For it to work with SSH, the sshd_config file must have the Banner directive pointing to /etc/issue.net. /etc/motd (Message of the Day) is incorrect because its contents are displayed after a user successfully authenticates. /etc/issue is incorrect as it is primarily used to display a banner for local console (TTY) logins, not remote network connections by default. /etc/profile is incorrect because it is a shell script executed after a successful login to configure the user's environment and is not a standard method for displaying a pre-authentication banner.
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 difference between /etc/issue.net and /etc/motd?
Open an interactive chat with Bash
How do you enable the banner from /etc/issue.net in SSH?
Open an interactive chat with Bash
Why is /etc/issue used for local logins rather than SSH?
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