Question

Suppress the Welcome message in SSH?

Posted March 1, 2019 895 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?

Thanks!

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.

1 answer

Have you tried editing

“/etc/ssh/sshd_config”

PrintMotd No

Please let us know how you get on.
Best,

Submit an Answer