Red Hat Bugzilla – Bug 540317
OpenSSH-server banner displayed incorrectly
Last modified: 2009-11-23 02:39:27 EST
Description of problem:
Backslashes in banner file are doubled when displayed by SSHD.
Version-Release number of selected component (if applicable):
Create banner file containing this text: "/ / \ \".
Configure SSHD to use prepared banner.
Steps to Reproduce:
1. Start SSHD.
2. Connect to the server.
3. Enter user name. Check the banner.
Backslashed are doubled:
"/ / \\ \\"
"/ / \ \"
The banner messages are escaped not by SSHD but by the ssh client so a rogue server can not send terminal escapes to the client's terminal.