Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jun 2010 16:41:54 -0700 (PDT)
From:      Goh Sanda <x4500fbsd@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   adding output lines to my .cshrc breaks sftp and scp ...
Message-ID:  <101691.53333.qm@web120207.mail.ne1.yahoo.com>

next in thread | raw e-mail | index | archive | help


I added a few lines to the bottom of my standard FreeBSD .cshrc file:

echo ""
w
echo ""

Just to show me what is going on each time I log in.

The problem is, when I try to scp a file to the system, I get 'w' output echo'd to me, and no actual scp.

sftp fails as well - I can no longer log in via sftp, and instead get this error:

Received message too long 169882682

I don't understand why .cshrc output is breaking non-interactive SSH file transfer.

Is there a way to customize my .cshrc output while still retaining scp/sftp functionality ?

Thank you.


      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?101691.53333.qm>