Hi,

As of 2015.68, dropbear(8) says

   “By default the file /etc/motd will be printed for any login shell
    (unless disabled at compile-time). This can also be disabled
    per-user by creating  a file ~/.hushlogin .”

But in fact /etc/motd is printed whenever a TTY has been requested, even
when a command is executed on a non-login shell (explicitly or via an
authorized_key(5) restriction).  For instance, using the OpenSSH client,

    ssh -t localhost -p 2222 true

prints the Message Of The Day.  This is probably not the intended
behavior, as it messes up with the command's standard output hence make
it hard to use redirections.

Cheers,
-- 
Guilhem.

Attachment: signature.asc
Description: PGP signature

Reply via email to