• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Colorful SSH Welcome Message (Ubuntu, Rackspace Cloud)

By Abhishek Ghosh August 27, 2014 8:00 am Updated on August 27, 2014

Colorful SSH Welcome Message (Ubuntu, Rackspace Cloud)

Advertisement

Here is How You Can Make The SSH Welcome Colorful, Known as Message of the Day or MOTD on Ubuntu Server on Rackspace Cloud in Simple Way. This Colorful SSH Welcome Message has specific terminology – SSH Banner. We already know the basics to change SSH welcome message from our previous guide, this time we will modify it further to get colorful one!

 

Information Around Colorful SSH Welcome Message aka MOTD Banner

 

There are some theoretical stuffs like when we run the command ssh root@ip_address, when a ssh session is connected and before the authorization till we are providing the password and successfully getting login to the server, it is handled by another daemon. After we successfully pass the password authentication, what we get usually we refer to SSH Welcome Message or Message of the Day (MOTD). We are talking about MOTD part only.

Colorful MOTD Banner was once very popular! Even the high end computer and networking equipment manufacturers used to have their official tutorials. Cisco switches has dedicated banner motd command. As with the increased usage of Cloud Servers has made the usage of SSH necessary again, many users are finding resources to customize them.

Advertisement

---

In the previous guide linked above, frankly we have edited one file in the /etc/update-motd.d to change the SSH Welcome Message. If we edited the file /etc/issue.net and do some change we would get things before. root@IP_address's password: – this is usually disabled on all GNU Linux! In order to change this, we need to first open the file /etc/issue.net and put things we like (it is Server Version as text by default) and save it. Then we need to open /etc/ssh/sshd_config and find out the commented out line Banner /etc/issue.net, make it active by removing that hash, save it and doing ssh daemon’s restart by running the command sudo service ssh restar.

If you ask on most those question, answer forums; most will be unable to tell you things “before the authorization till we are providing the password”. They do not know the basics. See this screenshot, my one server nicely giving warning :

SSH message before before authorization till providing the password

We are explaining the commands under different sub headers.

Colorful SSH Welcome Message (Ubuntu, Rackspace Cloud)

 

Changing The Message Before The True SSH Welcome Message aka MOTD Banner

 

This is what we described above and usually people do not know and is disabled by default. Legally this is important! In “Computer Misuse Act 1990” it has been strongly recommended that the computers must display a banner before asking the users to log in! The Act stipulates that an offense of unauthorized access can only be committed if the offender knew at the time that the access he intended to obtain was unauthorized! Quite funny, this is kind of hanging a banner “Trespassers Will Be prosecuted”! So, here we go :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# login as root
nano /etc/ssh/sshd_config
# find the phrase
# Banner /etc/issue.net
# with O + W
# remove that hash before it and save the file with
# ^ + O and exit with ^ + X
nano /etc/issue.net
# remove the default Ubuntu version text
# copy paste things which is kind of "Trespassers Will Be prosecuted"
# you can copy it :
********************************************************************
*                                                                  *
* This system is for the use of authorized users only.  Usage of   *
* this system may be monitored and recorded by system personnel.   *
*                                                                  *
* Anyone using this system expressly consents to such monitoring   *
* and is advised that if such monitoring reveals possible          *
* evidence of criminal activity, system personnel may provide the  *
* evidence from such monitoring to law enforcement officials.      *
*                                                                  *
********************************************************************
# restart sshd
sudo service ssh restart
# or
/etc/init.d/sshd restart
# exit and login
exit && ssh root@your-IP
# never combined exit and login to ssh before? lol

 

Colorful SSH Welcome Message (Ubuntu, Rackspace Cloud)

 

Now after login, i.e. shooting the trespassers! So basically this is advanced usage of change SSH welcome message.

While I know many methods, for this only color part, easiest is to use lolcat – it is a ruby package :

Vim
1
https://github.com/busyloop/lolcat

We can install quite easily on Ubuntu :

Vim
1
apt-get install lolcat

Now run :

Vim
1
lolcat -h

to see rainbow. Here your piping comes in work; try these commands :

Vim
1
2
3
4
5
ls
# versus
ls | lolcat
# versus
ls | lolcat -a

Yeah yeah, animated colorful stuffs with the full command. Now install these :

Vim
1
apt-get install fortune-mod cowsay

After installation is done, run this :

Vim
1
fortune | cowsay | lolcat

Then copy this gist :

Vim
1
https://gist.github.com/dorentus/4689543

Tagged With ssh banner , ssh banner color , Ubuntu banner issue net , yhs-linuxmint , ubuntu windows colourful , funny ubuntu message of the day , colorful ssh motd , colorful ssh banner , 리눅스 banner tput , cisco short version warning banner
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Colorful SSH Welcome Message (Ubuntu, Rackspace Cloud)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Change SSH Welcome Message (Ubuntu, Rackspace Cloud)

    Here is How You Can Change SSH Welcome Message, Also Known as Message of the Day or MOTD on Ubuntu Server on Rackspace Cloud By Simple Way.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Add SSH Message Before Login

    Here is how to add SSH message before login, so that all can see message after running SSH login command before the password prompt appears.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is a Digital-to-Analog Converter (DAC)September 25, 2023
  • Tips on S Pen Air ActionsSeptember 24, 2023
  • Market Segmentation in BriefSeptember 20, 2023
  • What is Booting?September 18, 2023
  • What is ncurses?September 16, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy