[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Scriptable motd for initial SSH login?



On Wed, Sep 14, 2011 at 4:37 PM, Michael H. Warfield <mhw at wittsend.com> wrote:
> On Wed, 2011-09-14 at 16:22 -0400, David Tomaschik wrote:
>> Make sure you're outputting to stderr, not stdout. ?The man page
>> wasn't kidding about that. ?If you output to stdout, then programs
>> that use SSH as a transport will be broken because they'll see the
>> output of your script in their data stream. ?(This includes rsync,
>> scp, etc.)
>
> Right.
>
> But that's the case even if you had another motd.

Yes, but ssh's built-in MOTD handling goes to stderr automatically.
So using it, no special user attention is required.



-- 
David Tomaschik, RHCE, LPIC-1
System Administrator/Open Source Advocate
OpenPGP: 0x5DEA789B
http://systemoverlord.com
david at systemoverlord.com