Report on Issues Before Logging In
It is sometimes necessary to report to users that there are upcoming changes/issues/etc to a server before they login to a machine. To do this:
- SSH into machine as admin
ssh admin@1.2.3.4
- Change to root user
admin$ sudo su # be sure to enter in the password for the admin user, not the root password
- Create a file called “issues” in the etc directory
admin$ touch /etc/issues admin$ chmod 644 /etc/issues
- Allow the ssh daemon to access the banner
- edit /etc/ssh/sshd_config
- find the line that begins with
#Banner
- remove the # comment marker
- save the file and exit
- Restart the SSH daemon
svcadm restart ssh
Upon login, the banner will be presented before the user has entered their password.