Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2008 15:35:43 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-net@FreeBSD.ORG, tony@crosswinds.net
Subject:   Re: SCP/SFTP Brain Fart
Message-ID:  <200806191335.m5JDZheF081044@lurza.secnetix.de>
In-Reply-To: <20080619114541.GA9804@crosswinds.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806191335.m5JDZheF081044>