bugzilla-daemon at mindrot.org
2003-Oct-08 19:58 UTC
[Bug 739] A .cshrc that gives output causes sftp-server to reject sftp
http://bugzilla.mindrot.org/show_bug.cgi?id=739
Summary: A .cshrc that gives output causes sftp-server to reject
sftp
Product: Portable OpenSSH
Version: 3.6.1p2
Platform: Sparc
OS/Version: Solaris
Status: NEW
Severity: minor
Priority: P2
Component: sftp-server
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: awkay69 at yahoo.com
Including:
echo -n "message"
in .cshrc (login shell set to csh) causes Linux, Solaris, and Windows sftp
clients to be rejected with the error message "Received message too long
1835365235".
Of course, you could say that having output produced from an rc file is not
really a standard (or even desirable) practice, but that is neither here nor
there.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-08 21:29 UTC
[Bug 739] A .cshrc that gives output causes sftp-server to reject sftp
http://bugzilla.mindrot.org/show_bug.cgi?id=739
djm at mindrot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
Summary|A .cshrc that gives output |A .cshrc that gives output
|causes sftp-server to reject|causes sftp-server to reject
|sftp |sftp
------- Additional Comments From djm at mindrot.org 2003-10-09 07:29 -------
You are correct: shell initialisation scripts shouldn't produce output. Put
it
in .login.
This has been documented at http://www.openssh.com/faq.html#2.9 for over three
years.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.