• 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 SSH Login Banner

Dree

Basic Pleskian
Does anyone know how to get rid of the annoying SSH login banner Plesk Onyx installs?


Using username "root".
Last login: Wed Nov 23 14:13:26 2016 from xxxxxxx

This server is powered by Plesk. Log in by browsing
https://xxxxxxx:8443/ or https://xxxxxxxxxxx:8443/

You can log in as user 'root' or 'admin'.
To log in as 'admin', use the 'plesk login' command.
Use the 'plesk' command to manage the server. Run 'plesk help' for more info.
 
Hi Dree,

you don't provide enough informations ( i.e: operating system, depending configuration files, ... ), so that I'm only able to give you some hints:

=> /etc/motd
=>
/etc/update-motd.d
=> find / -type f -name "*" -exec grep --color -Hni "This server is powered by Plesk" {} \;
 
Last edited by a moderator:
It's CloudLinux 7, clean Plesk Onyx install and clean CloudLinux install

/etc/motd is empty, I checked all the usual places to edit this banner, but can't find anything.
 
Last edited:
Hi Dree,

the used script is:

=> /usr/lib/plesk-9.0/ssh-banner

... which could be called, when NO "motd" is set ( I assume ). Please wait for a Plesk-Team-Member ( @IgorG for example ) to answer your question correctly, without a personal guess. :D
 
@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.
 
For anyone looking for the origin: This is included by "~/.profile".
Code:
[ ! -s ~/.plesk_banner ] || . ~/.plesk_banner
 
Back
Top