Suppress the Welcome message in SSH?

Posted March 1, 2019 4.8k views
Server OptimizationUbuntu 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?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Have you tried editing


PrintMotd No

Please let us know how you get on.