It's easy to create your own welcome message for remote users who log in to your Ubuntu Linux machine. We'll show you how to create your own custom banner in no time!

Part 1
Part 1 of 3:

Adding a Welcome Message

  1. 1
    Sudo to root. You will need to modify superuser file.
  2. 2
    Open the config file for the banner. Type vim /etc/issue.net
    Advertisement
  3. 3
    Read the file. You will get a screen similar to the one shown.
  4. 4
    Add your message. Next just below the lines of Debian 6.0, type any custom message you feel.
  5. 5
    Check the look of the file. The issue.net file looks as shown
  6. 6
    Exit out of this file. Save the changes by typing EscKey + !wq
  7. Advertisement
Part 2
Part 2 of 3:

Configuring SSH Daemon

  1. 1
    Close SSH if running. You need to make SSH understand that you need to enable the Banner Message.
  2. 2
    Open the configuration file. Issue the command, vim /etc/ssh/sshd_config
  3. 3
    Modify the file. Now in the sshd_config file, you need to uncomment the Banner portion as shown
  4. 4
    Start SSH. Issue the command --> /etc/init.d/ssh restart
  5. 5
    Wait until restarted. The OpenSSH Server Daemon process will restart.
  6. Advertisement
Part 3
Part 3 of 3:

Testing the Message

  1. 1
    Connect via localhost. After this is done, you can test it by issuing a test login via localhost by issuing the following command ssh localhost
  2. 2
    Type yes to connect.
  3. Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 13 people, some anonymous, worked to edit and improve it over time. This article has been viewed 69,291 times.
How helpful is this?
Co-authors: 13
Updated: October 6, 2021
Views: 69,291
Categories: Linux
Advertisement