From owner-freebsd-bugs Tue Sep 4 5:47:44 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from ringworld.nanolink.com (discworld.nanolink.com [217.75.135.248]) by hub.freebsd.org (Postfix) with SMTP id 74ED437B40C for ; Tue, 4 Sep 2001 05:45:23 -0700 (PDT) Received: (qmail 74384 invoked by uid 1000); 4 Sep 2001 10:48:18 -0000 Date: Tue, 4 Sep 2001 13:48:18 +0300 From: Peter Pentchev To: "Alexey N. Nazarov" Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: question! Message-ID: <20010904134818.I61594@ringworld.oblivion.bg> Mail-Followup-To: "Alexey N. Nazarov" , freebsd-bugs@FreeBSD.ORG References: <20010904134034.P48123-100000@frux.iptelecom.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010904134034.P48123-100000@frux.iptelecom.net.ua>; from blaze@iptcom.net on Tue, Sep 04, 2001 at 01:41:45PM +0300 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Sep 04, 2001 at 01:41:45PM +0300, Alexey N. Nazarov wrote: > > Good daytime. > > Problem: I want do Secure Copy from Host To Host with scp > > $USER is not root > > scp $FILENAME $USER@$HOST: > then type my password for $HOST and see sessage > 'ttyname: Inappropriate ioctl for device' > > > 10:50 [blaze@frux:p6][~] uname -a > FreeBSD frux.iptelecom.net.ua 4.4-RC FreeBSD 4.4-RC #1: Thu Aug 30 > 21:38:27 EEST 2001 > root@frux.iptelecom.net.ua:/usr/src/sys/compile/FRUX i386 > > How i can fix it? Do you have a ~/.profile, ~/.cshrc, ~/.bash_profile, ~/.bashrc or some such shell startup file for the $USER account on $HOST, that might call some external program which would want to call ttyname? I had similar problems when I had put a 'fortune' call in .bashrc, which got invoked for each and every login, including non-interactive logins used for scp; the fortune output really mangled the scp protocol.. G'luck, Peter -- because I didn't think of a good beginning of it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message