From owner-freebsd-questions Mon Oct 29 9:29:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fepZ.post.tele.dk (fepz.post.tele.dk [195.41.46.133]) by hub.freebsd.org (Postfix) with ESMTP id 235BD37B403 for ; Mon, 29 Oct 2001 09:29:25 -0800 (PST) Received: from arnold.neland.dk ([62.243.124.200]) by fepZ.post.tele.dk (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20011029172923.XYW395.fepZ.post.tele.dk@arnold.neland.dk>; Mon, 29 Oct 2001 18:29:23 +0100 Received: from gina ([192.168.5.109]) by arnold.neland.dk (8.11.6/8.11.6) with SMTP id f9THTMq44053; Mon, 29 Oct 2001 18:29:23 +0100 (CET) (envelope-from leifn@neland.dk) Message-ID: <002001c1609f$444629c0$6d05a8c0@neland.dk> From: "Leif Neland" To: "David Kirchner" Cc: References: <20011028231117.T35308-100000@localhost> Subject: Re: rdist, ssh, "stdin: is not a tty" Date: Mon, 29 Oct 2001 18:29:29 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On Sun, 28 Oct 2001, Leif Neland wrote: > > > I'm trying to replicate some webservers to a backup-disk. with rdist > > over ssh. > > > > For some strange reason the backup-server says "stdin: is not a tty", > > when I execute a command like "ssh backupserver df", but it executes > > the command anyway. The backup server is a debian. > > It's possible there is something in your user account's .cshrc or > equivalent file when it should probably be in your .login or equivalent. > That is, some command is getting executed when the remote shell is > starting up when it should only be executed when you actually log in to > the server. > > > If I do the same from a redhat, where I have compiled ssh and rdist > > myself, I get "LOCAL ERROR: Unexpected response: stdin: is not a tty" > > and rdist terminates. > > > > What causes the difference in behaviour? the redhat and freebsd has > > the same rdist: 6.1.15, and the freebsd-patches does not seem to have > > anything to do with this. > > No idea, but I suspect you can fix the stdin: is not a tty message and > then it won't be a problem. :-) > I "fixed" it by making a ssh-wrapper: #!/bin/sh /usr/bin/ssh 2>/dev/null $* and letting rdist call that instead. The next problem was that the username had to exist on the remote user, otherwise rdist would try to transfer the file owned by a non-existent user every time. Leif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message