Use a opção -q
(silenciosa) para ssh e scp, para suprimir as mensagens /etc/motd
(e relacionadas).
Embora Banner
possa parecer relacionado, não é. Consulte o manual sshd_config
:
The contents of the specified file are sent to the remote user before authentication is allowed. If the argument is none then no banner is displayed. By default, no banner is displayed.
Você pode usar PrintMotd
(em sshd_config
):
PrintMotd
Specifies whether sshd(8) should print/etc/motd
when a user logs in interactively. (On some systems it is also printed by the shell,/etc/profile
, or equivalent.) The default is yes.
mas no script, eu simplesmente uso a opção -q
(exigindo menos configuração do servidor).