Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0Digg thisPin on Pinterest0Email this to someone

Add the Message of the Day and Banner lines to the SSH config:

Edit:

/etc/ssh/sshd_config

 Uncomment:

PrintMotd yes

The option PrintMotd specifies whether the ssh daemon should print the contents of the /etc/motd file when a user logs in interactively. The /etc/motd file is also known as the message of the day.

Uncomment and add path to banner like so:

# no default banner path 
Banner /etc/ssh/banner

Add the Message of day file:

vim /etc/motd 

Paste this in the file:

Example.com VPN Server 1 
This service only listens on port XXX
Do NOT close this window or you will terminate the tunnel. 
(CTRL-C to terminate connection)

 Add the Banner file:

vim /etc/ssh/banner

Paste this in the file:

Welcome to Example.com VPN Server 1

 

If you enjoyed this post, why not leave a comment or consider a Donation as a token of your appreciation. If you need help implementing something you saw on this site or any other project why not Hire Me?
How to: CentOS Vitualmin SSH Welcome message – MOTD and Banner
Tagged on:                                 

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading Facebook Comments ...