Did some searching because that NEXTCLOUD motd/banner was driving me crazy! Could’nt find the culprit.
Then, I found this post and that comment from @Marcm saying it only occurs with a specific user, I decided to dig into the user config files in my default user’s home.
I found out that .bash_profile had a line executing a nextcloud script:
After reading the script, I realized it was generating that darned motd I never asked for!
What I did is I disabled that line in the bash_profile by adding a # in front of it
sudo nano ~/bash_profile
then I went down to the line to add a # (to disabled it):
Ctrl X (exit) ; Y (yes) , Enter to save and exit.
Then I reloaded that bash_profile:
Exited my SSH session and started a new one.
The Nexcloud logo is gone and SSH is now showing the generated contents of the /etc/update-motd.d/ scripts.
Alternatively, If you want to keep parts of the script (example, you want to keep seeing your IPs, you could instead edit the nextcloud script to remove the NEXTCLOUD logo by disabling the line generating it.
sudo nano /var/scripts/nextcloud.sh
Then, add a # in front of the line starting with “figlet” (and any other line you don’t want to see):
#figlet -f small Nexcloud
Ctrl X; Y , Enter.