SSH is a secure, remote access tool that allows you to connect to your computer from another location. You can use SSH to connect to your computer from anywhere in the world, and it’s a great way to keep your data safe. However, sometimes you may want to change the welcome banner on your SSH client. This article will show you how to change the welcome banner on Ubuntu.

  1. Open a terminal and type sudo apt-get update && sudo apt-get install ssh-server ssh-keygen 2. Type ssh-keygen and press ENTER 3. Type cd ~/.ssh/ && ls -lh ~/.ssh/welcome_banner 4. Change the banner in ~/.ssh/welcome_banner to something like this: “Welcome To Ubuntu”

Here’s the message that I get every time:

Changing this message requires editing two different files. The first three sections can be modified by editing the following file:

The programs included with the Ubuntu system are free software;the exact distribution terms for each program are described in theindividual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted byapplicable law.

Last login: Mon Aug 13 01:05:46 2007 from ipaddress removed

geek@superfast:~$

This file contains the linux build number as well as the Ubuntu warranty message. I don’t find this particularly useful, so I removed all of it and replaced it with my own message.

To disable the last login message (which I don’t recommend doing), you will need to edit the following file in sudo mode:

Find this line in the file and change the yes to no as shown:

Now when you login, you’ll get a blank prompt, although I wouldn’t necessarily recommend it because it’s useful to see the last login to the system for security reasons. This is my prompt now:

Linux is really great.

Last login: Mon Aug 13 01:24:14 2007 from ipaddress removedgeek@superfast:~$