8
3
I'm aware you can disable last-login and message-of-the-day messages when starting SSH sessions by having PrintLastLog no
and PrintMotd no
in /etc/ssh/sshd_config
.
However, I don't have permission to modify /etc/ssh/sshd_config
in the system I'm accessing. Is there a way to set PrintLastLog no
and PrintMotd no
for my local user only?
OP said he cannot modify /etc/ssh/sshd_config – MariusMatutiae – 2014-01-21T08:48:49.777
Thanks @MariusMatutiae for pointing that out. I've updated my answer to account for that. – Dwight Spencer – 2014-01-21T23:50:40.870
4
~/.hushlogin
suppressed the motd and last login messages. :D Bonus points if you can disable the banner as defined byBanner /etc/issue
in/etc/ssh/sshd_config
. – Alexander - Reinstate Monica – 2014-01-22T15:19:38.2571Thanks @XAleXOwnZX I completely forgot about that. I've updated the answer to include the Banner suppression. – Dwight Spencer – 2014-01-22T23:07:52.730