From owner-freebsd-questions@FreeBSD.ORG Mon Dec 8 15:12:27 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 3B1AC16A4CE for ; Mon, 8 Dec 2003 15:12:27 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 615FE43D30 for ; Mon, 8 Dec 2003 15:12:18 -0800 (PST) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id hB8NCOAD012273; Mon, 8 Dec 2003 15:12:24 -0800 (PST) Received: from [10.1.1.193] (nfw2.codefab.com [66.234.138.66]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 3.0) with ESMTP id hB8NCGaN011948; Mon, 8 Dec 2003 15:12:17 -0800 (PST) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Mon, 8 Dec 2003 18:12:15 -0500 To: Sean Page X-Mailer: Apple Mail (2.606) cc: "'questions@freebsd.org'" 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:12:27 -0000 On Dec 8, 2003, at 5:09 PM, Sean Page wrote: > 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. scp requires a "clean login", and that message might be causing the SSH protocol used by scp to break. In particular, something like: "ssh _machine_ true" should run /bin/true and return without generating any additional output. Depending on the shell you use, wrapping the invocation of fortune in something like: if ($?prompt) then # interactive CSH commands... endif ...or: case $- in *i*) # interactive SH commands. esac ...should resolve this issue. -- -Chuck