Sunday, April 29, 2012

Ubuntu Linux: OpenSSH Change Welcome Login Message

How do I change Openssh welcome login message under Ubuntu Linux?

First create a text file called /etc/ssh/welcome.msg using a text editor such as vi:
$ sudo vi /etc/ssh/welcome.msg
Append your welcome message:
Welcome to nixCraft Labs.
Save and close the file.
Next, edit /etc/sshd/sshd_config, enter:
$ sudo vi /etc/sshd/sshd_config
Add / edit as follows:
Banner /etc/ssh/welcome.msg
Save and close the file. Reload, ssh server:
$ sudo service ssh reload
Test your new settings:
$ ssh localhost
$ ssh user@server1.nixcraft.com

Sample outputs:
Welcome to nixCraft Labs!
vivek@localhost's password:

No comments:

Post a Comment