First create a text file called /etc/ssh/welcome.msg using a text editor such as vi:
$ sudo vi /etc/ssh/welcome.msgAppend your welcome message:
Welcome to nixCraft Labs.Save and close the file.
Next, edit /etc/sshd/sshd_config, enter:
$ sudo vi /etc/sshd/sshd_configAdd / edit as follows:
Banner /etc/ssh/welcome.msgSave and close the file. Reload, ssh server:
$ sudo service ssh reloadTest your new settings:
$ ssh localhost
$ ssh user@server1.nixcraft.comSample outputs:
Welcome to nixCraft Labs!
vivek@localhost's password:
No comments:
Post a Comment