SCP fails while ssh works...

Lowell Gilbert freebsd-questions-local at
Mon Feb 9 17:35:58 PST 2004

Garance A Drosihn <drosih at> writes:

> At 1:08 PM -0800 2/9/04, twig les wrote:
> >Hey all, I have to identical boxes running 4.6 and all of a
> >sudden one stopped taking SCP even though it still takes ssh
> >connections.
> This may not help you at all, but every time I've had a problem
> where scp fails and ssh works, it has been because the userid on
> the remote side printed out some extra text while it was logging
> in.  Something like 'Welcome to ....' in the .bashrc, for instance.

The solution to that type of problem is to have the text be printed
only on interactive sessions.  

    if tty -s; then 
            echo 'executing .bashrc'

I thought once defined shell functions to do that for me, but they
aren't in my startup files now...

More information about the freebsd-questions mailing list