Bug 765

Summary: openssh client truncates banner at 1024 characters.
Product: Portable OpenSSH Reporter: Shaun OLeary <shaun>
Component: sshAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED DUPLICATE    
Severity: minor    
Priority: P2    
Version: -current   
Hardware: ix86   
OS: Linux   

Description Shaun OLeary 2003-12-01 00:48:12 AEDT
It looks like the current version of the openssh client is truncating the 
banner to 1024 characters. This was not the case with 3.5p1 and earlier. The 
openssh server does present banners larger than 1024 characters- this looks 
like a ssh client problem. (I don't see the problem when I use older openssh 
clients from the same initiating computers)

Unfortunately, the department of energy banner that I'm mandated to use is just 
a couple of hundred characters longer.

Below is our standard banner from /etc/issue.

Regards,

Shaun O'Leary


---begin banner:
***************************************************************************
                              NOTICE TO USERS
 
This is a Federal computer system and is the property of the United
States Government. It is for authorized use only. Users (authorized or
unauthorized) have no explicit or implicit expectation of privacy.
 
Any or all uses of this system and all files on this system may be
intercepted, monitored, recorded, copied, audited, inspected, and disclosed
to authorized site, Department of Energy, and law enforcement personnel,
as well as authorized officials of other agencies, both domestic and
foreign. By using this system, the user consents to such interception,
monitoring, recording, copying, auditing, inspection, and disclosure at the
discretion of authorized site or Department of Energy personnel.
 
Unauthorized or improper use of this system may result in administrative
disciplinary action and civil and criminal penalties. By continuing to use
this system you indicate your awareness of and consent to these terms and
conditions of use.
 
By logging on to this system you agree to the above terms and conditions.
 
***************************************************************************
Comment 1 Darren Tucker 2003-12-01 01:12:40 AEDT
Already fixed in -current:
   - dtucker@cvs.openbsd.org 2003/10/07 01:47:27
     [sshconnect2.c]
     Don't use logit for banner, since it truncates to MSGBUFSIZ; bz #668 &
     #707.  ok markus@

If you need a fix now use patch attachment id #421 for bug #668.

*** This bug has been marked as a duplicate of 668 ***
Comment 2 Damien Miller 2004-04-14 12:24:20 AEST
Mass change of RESOLVED bugs to CLOSED