PortGate

Blueprints · Server Hardening

Beginner 5 min · Linux

SSH login banner

Stages a short authorized-use banner. It does not change authentication.

Baked-in protections

Step 1 · text

banner text

/root/portgate-blueprints/issue.net

Point sshd Banner at this file after you copy it to /etc/issue.net.

Authorized use only. Disconnect if you are not an operator of this host.

Step 2 · bash

Read-only check

/root/portgate-blueprints/banner-check.sh

Prints status. It does not change the service.

#!/bin/sh
set -eu
sshd -T | grep -i '^banner' || echo "No Banner is set. The text file is staged only."