From owner-freebsd-questions@FreeBSD.ORG Mon Dec 8 15:14:02 2003 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 3A16716A4CE for ; Mon, 8 Dec 2003 15:14:02 -0800 (PST) Received: from relay.epsb.ca (relay.epsb.ca [198.161.119.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE6FC43D2E for ; Mon, 8 Dec 2003 15:13:57 -0800 (PST) (envelope-from Sean.Page@epsb.ca) Received: from exchange03.epsb.ca (exchange03.epsb.ca [10.0.5.11]) by relay.epsb.ca (8.12.8p2/8.12.8) with ESMTP id hB8NDvjM004448 for ; Mon, 8 Dec 2003 16:13:57 -0700 (MST) (envelope-from Sean.Page@epsb.ca) Received: by exchange03.epsb.ca with Internet Mail Service (5.5.2653.19) id ; Mon, 8 Dec 2003 16:16:06 -0700 Message-ID: From: Sean Page To: "'questions@freebsd.org'" Date: Mon, 8 Dec 2003 16:08:22 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Subject: RE: Strange behavior with scp 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: Mon, 08 Dec 2003 23:14:02 -0000 HA! That was it! Thanks Jonathan. Sean. -----Original Message----- From: Jonathan T. Sage [mailto:sagejona@theatre.msu.edu] Sent: December 8, 2003 4:02 PM To: 'questions@freebsd.org' Subject: Re: Strange behavior with scp Sean Page wrote: > Hi, > > I just upgraded 2 machines to 4.9p1 and one of them is displaying a rather > odd behavior. > When I try to scp a file from said machine, it shows the first line of the > fortune (the one you see if you, say, log into a shell on the machine) on > the client end and then it quits. No error is reported in /var/log/messages > or auth.log and no file is transferred. > Has anyone seen this before? I tried using the same sshd_config as the > working machine to no avail. > Any suggestions would be greatly appreciated. > > Thanks, > Sean. > This is happening because fortune is hijacking the tty. edit your shell init program to not run fortune on non-interactive shells, or remove it all together and scp should work fine again. ~j -- "Yesterday upon the stair I saw a man who wasn't there, he wasn't there again today, oh how i wish he'd go away" Rev. Jonathan T. Sage Lighting / Set Designer Professional Web Design [HTTP://theatre.msu.edu] [sagejona@theatre.msu.edu] [See Headers for Contact Info]