User complains about seeing SSH banner page during login.

User complains about seeing SSH banner page during login.

133
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 15:52 PM


Symptom


Upon making a connection via PSMP users may complain about the amount of notification / banner screen text which appears and it looks to be repeated twice, once before login and once again after authentication.


Environment


10.5;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.8;12.6;13.0;13.2;13.1 Privileged Access Manager (PAM, self-hosted) PSMP
PSMP Installation


Cause


There are two places where notifications can be configured and in some environments the pre-authentication message may also be the same as the post authentication (MOTD) displayed.


Resolution


  • Check the affected systems to verify whether a pre-authentication notification has been configured as well as the MOTD screen which is displayed post authentication.
  • Check the sshd_config file (vi /etc/sshd/sshd_config) to see if this contains:
Banner /etc/ssh/sshd-banner
PrintMotd yes
*The banner can be commented out (preferable) or removed from the sshd_config if it's not needed.
 
  • To check the contents of the MOTD file you can run the following after login:
cat /etc/motd
 
The file can also be edited with 'vi' if needed you want to change the text or set 'PrintMotd No' in sshd_config and restart the service ('/etc/init.d/sshd restart' or 'systemctl restart sshd')


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000oD0CAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail