On Mon, Sep 30, 2002 at 11:06:05AM +0100, Matthew Seaman wrote:
> On Mon, Sep 30, 2002 at 01:46:13AM -0400, Adam Bender wrote:
> > 
> > I'm running FreeBSD 4.6.2.  I can ssh into the box fine, but sftp gives
> > this error message:
> > unix13:~/$ sftp [EMAIL PROTECTED]
> > Connecting to machine.name...
> > [EMAIL PROTECTED]'s password:
> > Received message too long 1500476704
> > unix13:~/$

> Unfortunately that's not sufficient information to diagnose exactly
> what's wrong.  Could you try running your scp and sftp commands again
> with liberal use of the '-v' (verbose) flag:

Ooops. spoke (typed?) too soon.  I knew that looked familiar...  The
problem is that your shell initialization files are printing stuff out
even when you aren't logging in interactively, and that's being
misinterpreted by the scp or sftp subsystems:

    http://marc.theaimsgroup.com/?l=secure-shell&m=102952631227473&w=2

If you're using csh(1)/tcsh(1), there's a fairly simple cure.  You can
wrap all the stuff that only appropriate for interactive logins into
an if.. statement like so:

    if ($?prompt) then
        # Interactive settings go here...
        set autolist
        ...
    endif

        Cheers,

        Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
                                                      Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to