Comments longer than 1024 chars break sshd_config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
portable OpenSSH |
Fix Released
|
Medium
|
|||
openssh (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
When sshd_config contains a comment of more than 1023 chars, it treats char 1024+ as valid configuration. That usually breaks the config, or (in case there accidentally is valid sshd_config syntax) is unwanted.
To verify the bug, apply appended patch to sshd_config (that prepends a long comment) and try to start ssh. You will see this:
$ sudo /usr/sbin/sshd
/etc/
/etc/
Note that it complains about line 2 though the offending comment is in line 1.
It is worth mentioning that active configuration lines longer than 1023 chars work fine. (I discovered this bug when i commented out a long "Match Address" list)
This bug strikes at on
* openssh-server 1:5.3p1-3ubuntu7 (Ubuntu 10.04 LTS)
* openssh-server 1:5.8p1-7ubuntu1 (Ubuntu 11.10)
* openssh-server 1:5.9p1-5ubuntu1 (Ubuntu 12.04 LTS)
Changed in openssh (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in openssh: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
The attachment "Prepends a comment longer than 1024 chars to sshd_config" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]