Suppress the Welcome message in SSH?

March 1, 2019 465 views
Server Optimization Ubuntu 18.04

I want the welcome message on by default, I like it, but if I could have the ability to suppress it when running scripts to keep the console cleaner and easier to backtrack through it’d make life easier.

something like:
ssh -q $HOST

This command suppresses it entirely, not cool:
touch ~/.hushlogin

Any ideas?


1 Answer

Have you tried editing


PrintMotd No

Please let us know how you get on.

Have another answer? Share your knowledge.