• 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 » Change SSH Welcome Message (Ubuntu, Rackspace Cloud)

By Abhishek Ghosh August 12, 2014 4:15 pm Updated on August 12, 2014

Change SSH Welcome Message (Ubuntu, Rackspace Cloud)

Advertisement

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. The default message is somewhat like Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.2.0-29-virtual x86_64). Documentation: https://help.ubuntu.com/, System information as of etceteras not only boring but also useless because this Message of the Day or MOTD on Ubuntu Server can be really informative as it can print message, system info dynamically from script. The default is an example, depending on the vendor, the message can be changed at compilation level, like Digital Ocean outputs a different message.

 

How To Change SSH Welcome Message (Ubuntu, Rackspace Cloud)

 

After doing the change, one of our server gives output like this :

Change-SSH-Welcome-Message-Ubuntu

That “Welcome to Master Instance of thecustomizewindows.com. PublicNet address is…” is a changed, custom message. We can understand that we are on the Master instance. If we need the PublicNet or ServiceNet IP of own server, we can easily copy. With usage of various API, Programs, these message can be more useful and even colorful!

Advertisement

---

 

Steps To Change SSH Welcome Message

 

It is very easy! Official documentation is huge :

Vim
1
https://wiki.ubuntu.com/UpdateMotd

This is a daemon and can suck some memory. One can reduce the memory consumption by printing non-dynamic text message. Stopping the daemon can mask fatal warning.

If you have some experience on shell scripting, it will give you more ideas. Here we are only giving example of easy simple editing. First SSH to the server. Change directory to the /etc/update-motd.d and list the files :

Vim
1
cd /etc/update-motd.d && ls

You will see there are three files :

Vim
1
00-header  10-help-text  91-release-upgrade

That 00-header is the file which on Rackspace, Ubuntu 14.04 by default reads. So, we can open it with nano :

Vim
1
nano 00-header

After lot of commented out lines, you will find this :

Vim
1
2
3
4
5
6
7
8
[ -r /etc/lsb-release ] && . /etc/lsb-release
 
if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then
        # Fall back to using the very slow lsb_release utility
        DISTRIB_DESCRIPTION=$(lsb_release -s -d)
fi
 
printf "Welcome to %s (%s %s %s)\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname....

That last line with printf actually outputs the things on ssh. If you change it to simple plain text, you’ll get a plain text output. It is better to take a backup copy before editing. Save it, SSH after few minutes, you will see the change on login.
You can put scary message like “You got in to the system, thats true; but we are watching you! You can exit from SSH but we will find you in real life.” Getting such a message is not very comfortable to a script kiddie who somehow got the access. Technically, you should not point towards any location where you keep passwords and other stuffs. Instead you can print misleading info.

Tagged With change ssh login text ubuntu 16 04 , modify server message ubuntu cloud , ssh change welcome message raspbian show dynamic data , ubuntu 14 04 welcome message
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 Change 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.

  • Colorful SSH Welcome Message (Ubuntu, Rackspace Cloud)

    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.

  • 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.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 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