From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7)
Description of problem:
The -q flag does not appear to work as advertised for SSH with regard
to the "Banner" configuration option. The man page states that it is
"quiet mode" which suppresses warning and diagnostic messages. This is
important for things like batch/automated transfers and commands.
OpenSSH 3.8.1p1 on AIX, in comparison, suppresses the banner when
In this case, I have set /etc/ssh/sshd_config's Banner option to read
"Banner /etc/issue.net" and customized issue.net with a legal warning.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Change /etc/ssh/sshd_config to have "Banner /etc/issue.net"
2. Restart sshd.
3. ssh -q localhost
Actual Results: Red Hat Enterprise Linux AS release 3 (Taroon Update 2)
Kernel \r on an \m
Expected Results: plankers@localhost's password:
I too have seen this problem. It is fixed with a newer version of
OpenSSH, but Redhat hasn't released newer RPMs nor have they back
ported the fix yet.
I'm not sure how the OpenSSH maintainers fixed it, but here is my
patch, it fixes the problem for me. Your mileage may very:
--- scp.c.orig 2004-09-24 14:50:51.000000000 -0400
+++ scp.c 2004-09-24 14:51:42.000000000 -0400
@@ -267,6 +267,7 @@
verbose_mode = 1;
+ addargs(&args, "-q");
showprogress = 0;
In case you don't read diffs (or incase the -u diff isn't what you
wanted) it boils down to adding the 'addargs(&args, "-q");' line to
the case 'q' statement.
I hope Redhat will fix this soon and release updated RPMs. Rebuilding
them from SRPMs every time a new release of OpenSSH comes out is a pain.
Oops, sorry. Above patch is for suppressing the banner with -q during
scp copies. I'm not sure how to fix ssh to suppress the banner. Hope
Redhat can offer a fix.
I am getting the same problem. An ssh -q will quiet several warnings
but will not silence the banner from coming across.
I have a number of users at our location that are parsing the output
of commands on a remote system and are being harassed with the banner
that comes across. A Fedora Core 3 machine will silence the banner
with the -q flag set at login.
Anyone have a patch that could be applied to a SRPM for more than SCP
as listed above?
Created attachment 110067 [details]
upstream backport of banner suppress patch
This is the upstream fix for -q to suppress banner messages, backported to the
latest Red Hat Release.
Thanks for the patch. This patched the bug as requested for me. Can
this be expected to be implemented on any future errata releases for
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.