From owner-freebsd-net@FreeBSD.ORG Thu Jun 19 14:07:46 2008 Return-Path: Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E494106564A for ; Thu, 19 Jun 2008 14:07:46 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [212.17.241.230]) by mx1.freebsd.org (Postfix) with ESMTP id 0F1808FC12 for ; Thu, 19 Jun 2008 14:07:44 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m5JDZhgB081045; Thu, 19 Jun 2008 15:35:44 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m5JDZheF081044; Thu, 19 Jun 2008 15:35:43 +0200 (CEST) (envelope-from olli) Date: Thu, 19 Jun 2008 15:35:43 +0200 (CEST) Message-Id: <200806191335.m5JDZheF081044@lurza.secnetix.de> From: Oliver Fromme To: freebsd-net@FreeBSD.ORG, tony@crosswinds.net In-Reply-To: <20080619114541.GA9804@crosswinds.net> X-Newsgroups: list.freebsd-net User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 19 Jun 2008 15:35:44 +0200 (CEST) Cc: Subject: Re: SCP/SFTP Brain Fart X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-net@FreeBSD.ORG, tony@crosswinds.net List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 14:07:46 -0000 Tony Holmes wrote: > I have jails and dedicated servers set up with various FreeBSD flavours > (4.11, 6.2, 7) on i386 and amd64. > > Some systems I have no problems with scp/sftping to. Others I get this: > > tony@devel ~ > 7:49am > scp foo.tar.gz tony@admin:~/ > Password: > stty: stdin isn't a terminal > Exit 1 > Exit 1 > > I get this across all the flavours/archs so it appears to be a setup/config > issue. I've compared ssh configs with the working systems, but I see nothing > and am stymied. It seems that your shell profile executes stty(1) even for non-interactive shells. That is wrong. Make sure that you shell profiles and rc files do not call stty or produce any output for non-interactive sessions. Such output confuses scp. That is, when you enter this command: $ ssh tony@admin true | hd then you should not get any output from it. If you do get output, you need to fix your shell profile on the remote host. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I made up the term 'object-oriented', and I can tell you I didn't have C++ in mind." -- Alan Kay, OOPSLA '97