Security

A compliance audit requires that remote users see a legal warning before they authenticate over SSH. The administrator has written the warning text and wants sshd to present it at the connection stage. Which configuration meets this requirement?

Show the answer

Correct answerA. Place the text in /etc/issue.net and set Banner /etc/issue.net in sshd_config

sshd shows a pre-authentication banner only when the Banner directive points to a file, and /etc/issue.net is the conventional file for network logins. /etc/motd is tempting, but it is shown only after a successful login, so it cannot warn users before authentication.