# How to turn off the Linux login banner

**URL:** https://www.compsmag.com/blogs/how-to-turn-off-the-linux-login-banner/
**Author:** Ayushi Chauhan
**Published:** 2021-11-20
**Updated:** 2021-11-20
**Categories:** Blogs
**Tags:** Blogs Daily, Computer Guides, guiderobert, Guides and Tutorials, guiding12, How To Guide, How To Guides, Linux Guides, Tips, Tricks
**Reading Time:** 3 min

---

This tip is about the how to turn off the Linux login banner. So read this free guide, How to turn off the Linux login banner step by step. If you have query related to same article you may contact us.

## How to turn off the Linux login banner - Guide

Want to get as much security as possible from your Linux servers?  Jack Wallen shows you how to limit the information aspiring newbies get by disabling the login banner.  When you log into Linux, whether via SSH or console, you are greeted with a banner containing some important information.  If you do everything you can to secure your Linux server, the information this banner reveals can be a gold mine for outsiders and potential attackers.

Information such as kernel version, distribution type, available updates and much more can be exposed.  So how can you prevent this information from being displayed when users log into their Linux systems?  Let me show you.

## How to    turn off the login banner on Linux or Unix with .hushlogin

First, create a new, empty individual file in your login directory ($HOME) called ~/.hushlogin.  At the Linux or Unix shell prompt, type the following touch command: touch ~ / .hushlogin

That is all.  Now try to login using the ssh command: ssh vivek@192.168.2.17

### What are motd and ~/.hushlogin files?

MOTD is an acronym for the message(s) of the day.  The /etc/motd file is normally displayed by login or ssh after a user logs in.  Content is displayed before shell is configured up for your session.  Traditionally, sysadmin used this file to deliver system-wide advertisements.  For example, they are replacing the RAID array to reset the box for kernel updates.  Here it is how to display it using the cat command: -cat /etc/motd- Individual users are allowed to suppress the display of this file by creating a file called .hushlogin in their home directories.  The concept of /etc/motd was created because it requires much less disk space than email for all users.

## Disabling the login banner on Linux or Unix using the .hushlogin file

tap ~ / .hushlogin

#OR#

tap $ HOME / .hushlogin

# BASH #

> $ HOME / .hushlogin

## Final note

I hope you like the guide How to turn off the Linux login banner. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.

---

*End of Article*