How to configure SSH login banner and MOTD on Ubuntu 16

How to configure SSH login banner and MOTD on Ubuntu 16

Ubuntu 16

When you login through my ssh client, you will receive the same message and I’m getting tired of seeing it, so I decided to change the message to something else.

Step 1: Change banner of ubuntu at /etc/issue.net

root@ubuntu:~# nano /etc/issue.net
Welcome to IThelpblog.com Ubuntu Server
root@ubuntu:~#

Step 2: Modify ssh configuration for banner.

Search “Banner” and make change to file /etc/issue.net

root@ubuntu:~# nano /etc/ssh/sshd_config

#Banner /some/path
–>
Banner /etc/issue.net

Step 3: Restart SSH service
root@ubuntu:~# /etc/init.d/ssh restart
[ ok ] Restarting ssh (via systemctl): ssh.service.
root@ubuntu:~#

Step 4: Login with new Banner or MOTD via SSH client (putty)

login as: root
Welcome to IThelpblog.com Ubuntu Server
root@10.236.10.19’s password:

Thanks for using IThelpblog.com.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>