• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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