[geeks] Supressing output of /etc/issue

Michael-John Turner mj at turner.org.za
Wed Sep 28 14:50:55 CDT 2005


On Wed, Sep 28, 2005 at 03:04:09PM -0400, Jeff Cole wrote:
> Is there any way to supress the output of /etc/issue by passing a flag
> to rsync or ssh or something? Checking around google and such hasn't
> yielded helpful results. I have tried sending stdout of the cronjob to
> /dev/null, but, that didn't help. I'm assuming that the output of
> /etc/issue is to stderr or something. Sending stderr to /dev/null is a
> nogo as seeing error messages would be helpful.

I'm not sure which sshd you're running (there may be differences between
OpenSSH and F-Secure's implementation), but the option "PrintMotd" is
probably what you want. If you set it to "no", it should suppress the
printing of anything at login.

Of course, this option is server-wide, so if you want the motd printed for
regular interactive logins, you may need to look at another option (eg,
filtering the output of the script, etc).

-mj
-- 
Michael-John Turner | http://weblogs.turner.org.za/mj/
mj at turner.org.za    | Open Source in WC ZA - http://www.clug.org.za/



More information about the geeks mailing list