Bug 739 - A .cshrc that gives output causes sftp-server to reject sftp
Summary: A .cshrc that gives output causes sftp-server to reject sftp
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp-server (show other bugs)
Version: 3.6.1p2
Hardware: SPARC Solaris
: P2 minor
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-09 05:58 AEST by Tony Kay
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Kay 2003-10-09 05:58:23 AEST
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.
Comment 1 Damien Miller 2003-10-09 07:29:26 AEST
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.
Comment 2 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED