ssh banners OpenSSH_3.6.1p2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi everyone!

I'm running banners on my servers via /etc/sshd_config banners.  This
gets highly annoying when I scp or sftp.  I have many scripts that
perform scp's in order which ends up printing my banner way too many
times.  Is there any way to supress this?  I would like banners for
ssh but not scp/sftp.  Another issue is the fact that I have to have
the banner display "before" the login is complete. ie) /etc/motd won't
cut it



Re: ssh banners OpenSSH_3.6.1p2

Quoted text here. Click to load it

Newer OpenSSH's allow the banner to be suppressed with "ssh -q" aka
"sftp -o LogLevel=QUIET".

If upgrading isn't an option, then you can redirect either stderr or stdin
(I forget which it is) to /dev/null.

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline