< All Docs

SSH Logins with Banner Messages (MOTD File)

Create a Microhost account to try this guide with a $50 credit.

Table of Content

One of the easiest ways to protect and secure SSH logins is by displaying warning messages to unauthorized users or displaying welcome or informational messages to authorized users.

There are two ways to display messages one is using the issue.net file and second one is using the MOTD file.

issue.net : Display a banner message before the password login prompt.

motd : Display a banner message after the user has logged in.

 # vi /etc/motd 

:: After executing the above command, a configuration file will open now you need to past what continent you want to display on the server login screen.

 ###############################################################

#    Welcome to Microhost.Com Test Server                                                       # 

#    All connections are monitored and recorded                                                #

#    Disconnect IMMEDIATELY if you are not an authorized user!                     #

#    Thanks Microhost Support 01204840000 Ext:3                                           #

##############################################################

:: Now check the server with a new session of SSH to verify that content is showing or not.

Thank you.

Previous SSH Logins with Banner Messages (Issue.net)
Next Structure Of Apache Configuration
Table of Contents