Using a login banner on a primary or a media server instance
You can set a text banner that appears before a user logs in to a primary or a media server instance. Typical uses for the login banner include legal notices, warning messages, and company policy information.
To add a login banner
- Log in to the instance as the appadmin user and run the following command to access and edit the
/etc/issuefile:sudo -i vi /etc/issue
- Add the text that you want to appear in the banner.
- Run the following command to access and edit the
sshd_configfile:sudo -i vi /etc/ssh/sshd_config
- In the file, locate the following entry:
#Banner none
Change it to the following:
Banner /etc/issue
- Run the following command to restart the sshd service:
sudo systemctl restart sshd
To edit a login banner
- Log in to the instance as the appadmin user and run the following command to access and edit the
/etc/issuefile:sudo -i vi /etc/issue
- Edit the text as needed.
To remove a login banner
- Log in to the instance as the appadmin user and run the following command to access and edit the
sshd_configfile:sudo -i vi /etc/ssh/sshd_config
- In the file, locate the following entry:
Banner /etc/issue
Change it to the following:
#Banner none
- Run the following command to restart the sshd service:
sudo systemctl restart sshd