There are instances where you want to display a message in shell before/after terminal login in Linux or Unix. There are however many ways Unix/Linux lets you customize this.
This is a text file, contents of which are displayed at the login prompt.
Also called message of the day. You can add some text to motd and it will be displayed after successful login
Some times you want to display a welcome message only to ssh logins. To achieve this,
You create a file somewhere on the file system – say
Add or edit the line
/etc/issue
This is a text file, contents of which are displayed at the login prompt.
/etc/motd
Also called message of the day. You can add some text to motd and it will be displayed after successful login
Only ssh Users
Some times you want to display a welcome message only to ssh logins. To achieve this,
You create a file somewhere on the file system – say
/etc/ssh/sshd_welcome
Add or edit the line
Banner /etc/ssh/sshd_welcome
in /etc/ssh/sshd_config