I've enabled the banner that appears before the password prompt by setting it it sshd_config
. However certain users (especially me) really don't need to see the banner (it also screws up a lot of scripting). I want to be able to disable it for certain users or maybe even certain IP addresses. How do I do this?
Just to be clear, this is the banner that is normally in /etc/issue.net
, not the one that can be silenced with .hushlogin
.
Best Answer
Here's an example. Details about how
Match
works is insshd_config
man page.excerpt
Details on the patterns that are permissible are in
ssh_config
man page under "PATTERNS".excerpt
Example