Bug 739

Summary: A .cshrc that gives output causes sftp-server to reject sftp
Product: Portable OpenSSH Reporter: Tony Kay <awkay69>
Component: sftp-serverAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED WORKSFORME    
Severity: minor    
Priority: P2    
Version: 3.6.1p2   
Hardware: SPARC   
OS: Solaris   

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