From owner-freebsd-questions@FreeBSD.ORG Mon Feb 9 17:35:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C6EA16A4CE for ; Mon, 9 Feb 2004 17:35:58 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4629A43D1D for ; Mon, 9 Feb 2004 17:35:58 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.196.44]) by comcast.net (sccrmhc13) with ESMTP id <2004021001355701600ffgose>; Tue, 10 Feb 2004 01:35:57 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id 6E2D293; Mon, 9 Feb 2004 20:35:56 -0500 (EST) Sender: lowell@be-well.ilk.org To: freebsd-questions@freebsd.org References: <20040209210854.34037.qmail@web60406.mail.yahoo.com> From: Lowell Gilbert Date: 09 Feb 2004 20:35:56 -0500 In-Reply-To: Message-ID: <44d68nogw3.fsf@be-well.ilk.org> Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: SCP fails while ssh works... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2004 01:35:58 -0000 Garance A Drosihn 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. e.g.: if tty -s; then echo 'executing .bashrc' fi I thought once defined shell functions to do that for me, but they aren't in my startup files now...