Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Hide SSH Welcome Message on Ubuntu Linux

July 2, 2024
in A, Blog, Linux
0
ADVERTISEMENT

Table of Contents

Hide SSH Welcome Message on Ubuntu Linux

When accessing your remote Ubuntu Linux server via SSH login, you are greeted by the following SSH welcome screen. Users typically encounter this screen when connecting to a server operating on Ubuntu or any Debian-based distribution.

6VoPyFxEQJeuZiLyDA8XvrOjb5zhjzCdXGR5M69nfoHWV17IF7GJikK9UsB0

Having it initially is fine, but dealing with a lengthy SSH welcome text every server connection eventually becomes bothersome. In this guide, you’ll discover how to turn off the SSH welcome message on your Ubuntu system.

The SSH welcome message are shown from the files located at /etc/update-motd.d/ path and settings defined in the /etc/ssh/sshd_config file.

Jq3QhQeiW6HePlTLQAiYkToHLfGa9c6WmFUr2Aw1pYwd81kVs1aqIbTqmRjQ

1. To suppress a welcome message, begin by opening your terminal and modifying the /etc/ssh/sshd_config file with your preferred text editor if the below settings is configured to yes.

cat /etc/ssh/sshd_config | grep PrintMotd
aoQPJWrWKOFQRkErm4gg84ShKa824caRejrq47bFhITcNWJwkWnFVn061Hl0

2. Next, proceed to edit the /etc/pam.d/sshd file.

sudo nano /etc/pam.d/sshd

3. Then find the following two lines:

...
session    optional     pam_motd.so  motd=/run/motd.dynamic
session    optional     pam_motd.so noupdate
...

4. Once you locate them, comment them down by placing # in front of each line, as shown:

...
#session    optional     pam_motd.so  motd=/run/motd.dynamic
#session    optional     pam_motd.so noupdate
...

The following is the look of the file after commenting on the above two lines:

qBGsqvPhTtglLBBou4QJTpDxv2DGiaBAKmhniMEw4x3u3PShlMiT4dZR1LMI

5. Save and close the file, restart your SSH server by running the following command:

sudo systemctl restart ssh

6. After completing the task, attempt to connect to your remote server, and you’ll notice that this time you won’t receive a welcome message, as shown:

28pUfu7ICW02DYkhFwZ4pt3BUQCSDtXusYoiumtUiTPhGB7neOd2iDQm13Se
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How to Fix Server Refused Our Key in PuTTY SSH

Next Post

How to Change the PuTTY SSH Session Window Title

Related Posts

Images Hidden Due To Mature Content Settings In CivitAI

August 31, 2024

Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

August 20, 2024

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024

How to Remove The Test Mode Watermark Without Disabling Test Mode

July 28, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory