How to Set Up a Custom Banner Message in Your Ubuntu Linux Machine for Remote Users

This How-to will enable you to set up a custom banner message to users who read your Banner Message and decide to enter your System at their own risk, else be warned about not trying to log in. We will be first editing a file called...

Part 1 of 3:

Adding a Welcome Message

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

Configuring SSH Daemon

  1. Picture 7 of How to Set Up a Custom Banner Message in Your Ubuntu Linux Machine for Remote Users
    Close SSH if running. You need to make SSH understand that you need to enable the Banner Message.
  2. Picture 8 of How to Set Up a Custom Banner Message in Your Ubuntu Linux Machine for Remote Users
    Open the configuration file. Issue the command, vim /etc/ssh/sshd_config
  3. Picture 9 of How to Set Up a Custom Banner Message in Your Ubuntu Linux Machine for Remote Users
    Modify the file. Now in the sshd_config file, you need to uncomment the Banner portion as shown
  4. Picture 10 of How to Set Up a Custom Banner Message in Your Ubuntu Linux Machine for Remote Users
    Start SSH. Issue the command --> /etc/init.d/ssh restart
  5. Picture 11 of How to Set Up a Custom Banner Message in Your Ubuntu Linux Machine for Remote Users
    Wait until restarted. The OpenSSH Server Daemon process will restart.
Part 3 of 3:

Testing the Message

  1. Picture 12 of How to Set Up a Custom Banner Message in Your Ubuntu Linux Machine for Remote Users
    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. Picture 13 of How to Set Up a Custom Banner Message in Your Ubuntu Linux Machine for Remote Users
    Type yes to connect.

You've just finished reading the article "How to Set Up a Custom Banner Message in Your Ubuntu Linux Machine for Remote Users" edited by the TipsMake team. You can save how-to-set-up-a-custom-banner-message-in-your-ubuntu-linux-machine-for-remote-users.pdf to your computer here to read later or print it out. We hope this article has provided you with many useful tech tips and tricks. You can search for similar articles on tips and guides. Thank you for reading and for following us regularly.

« PREV : How to Create and...
How to Compile a C... : NEXT »