• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Remove welcome message from SSH

Gualter Fernandes

New Pleskian
Hi,

How can I remove the welcome message from the SSH?

b8144737c1eb491392eef905042009b3.png
 
Make sure that following options in sshd config are commented or disabled:

# grep PrintMotd /etc/ssh/sshd_config
#PrintMotd yes

# grep Banner /etc/ssh/sshd_config
#Banner none

restart sshd service after that.
Also check content of file /etc/motd
 
Hi Gualter Fernandes,

you might like the previous answer/solution, provided by @VNick :
@Dree, check this out:

Code:
[root@server ~] # cat /root/.plesk_banner
# This script is indirectly called by Bash on login shell startup.
# It outputs Plesk shell banner with login instructions.
# If you don't need it, you may comment out the following line.
/usr/lib64/plesk-9.0/ssh-banner || :

So, just comment out the line. Plesk won't restore the banner on updates.
 
None of these answers seem to be correct:

Current Plesk is adding a line to "/root/.bash_profile" which is what includes the /root/.plesk_banner file, so you'll want to delete that include and then delete the .plesk_banner file as well. Disabling the SSH motd wouldn't make any sense (that just hides the problem) and the system /etc/motd file is empty.
 
Back
Top