From owner-freebsd-questions@FreeBSD.ORG Mon Dec 8 15:02:07 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 6C62616A4CE for ; Mon, 8 Dec 2003 15:02:07 -0800 (PST) Received: from theatre.msu.edu (theatre.msu.edu [35.8.69.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0D6443D1D for ; Mon, 8 Dec 2003 15:02:05 -0800 (PST) (envelope-from sagejona@theatre.msu.edu) Received: from theatre.msu.edu (12-210-65-147.client.attbi.com [12.210.65.147]) (authenticated bits=0) by theatre.msu.edu (8.12.10/8.12.10) with ESMTP id hB8N23kO043198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 8 Dec 2003 18:02:04 -0500 (EST) (envelope-from sagejona@theatre.msu.edu) Message-ID: <3FD502E9.7070507@theatre.msu.edu> Date: Mon, 08 Dec 2003 18:02:01 -0500 From: "Jonathan T. Sage" Organization: MSU Dept of Theatre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "'questions@freebsd.org'" References: In-Reply-To: X-Enigmail-Version: 0.82.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Phone: +1-517-974-1428 X-WWW-Home-Page: http://theatre.msu.edu X-PGP-Key-Figerprint: 182C CF3F 93A9 1DAA 2EBE D4D5 A159 96D9 452E A7F1 X-IM: AIM(jonathantsage,spartyman), ICQ(9587621), YIM(wisesage98) Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFF5415C5537E6A88FBED2293" 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:02:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFF5415C5537E6A88FBED2293 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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] --------------enigFF5415C5537E6A88FBED2293 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQE/1QLsoVmW2UUup/ERAjqTAKCfn3xieKpslr3Bwg1BH4RYopqRsQCgnL0T ix6s7eVpkYy66nitmZ8vN8o= =UWEX -----END PGP SIGNATURE----- --------------enigFF5415C5537E6A88FBED2293--