Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2002 11:16:03 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        Adam Bender <abender@andrew.cmu.edu>, questions@FreeBSD.ORG
Subject:   Re: sftp / scp not working?
Message-ID:  <20020930101603.GD51277@happy-idiot-talk.infracaninophi>
In-Reply-To: <20020930100605.GC51277@happy-idiot-talk.infracaninophi>
References:  <Pine.GSO.4.44L-027.0209300143030.27984-100000@unix13.andrew.cmu.edu> <20020930100605.GC51277@happy-idiot-talk.infracaninophi>

next in thread | previous in thread | raw e-mail | index | archive | help
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 adam@machine.name
> > Connecting to machine.name...
> > adam@machine.name'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 majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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