From owner-freebsd-questions Tue May 15 20:12:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nisser.com (c0039.upc-c.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id 78D9537B424 for ; Tue, 15 May 2001 20:12:25 -0700 (PDT) (envelope-from roelof@nisser.com) Received: from nisser.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id FAA99294; Wed, 16 May 2001 05:12:09 +0200 (CEST) (envelope-from roelof@nisser.com) Message-ID: <3B01F009.640CC4D9@nisser.com> Date: Wed, 16 May 2001 05:12:09 +0200 From: Roelof Osinga Organization: eBOA - Programming the Web X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Damien Tougas Cc: Tony Wells , Daniel Frazier , freebsd-questions@FreeBSD.ORG Subject: Re: Scripting FTP actions References: <199050000.989963136@01.dhcp.hck.carroll.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Damien Tougas wrote: > > --On Tuesday, May 15, 2001 16:53:20 -0400 Daniel Frazier > wrote: > > > ... > > I'd use scp. with scp you can utilize a ~/.ssh/authorized_keys file > > on the destination machine and you won't have to put any passwords in > > the script. > > Another way you can do this is by setting up macros for the FTP client. I > am not very familiar with ncftp, but I do know you can do this with the > FreeBSD ftp client. If you put a macro in your .netrc file called init for > a particular host, it will be automatically processed as soon as you try to > connect to a that host. An example .netrc file is as follows: > > machine ftp.someplace.com > login dude > password abc123 > ... This will still result in sending your password in ASCII over a generic TCP stream. Not so with the presented scp solution. Roelof PS even today I'm connected to the 'Net via CATV using a Com21 which allows all other Com21 users in the segment to view my data. Passwords and all. Fortunately this situation is getting rarer. Unfortunately there are always ways. -- _______________________________________________________________________ eBOAź est. 1982 http://eBOA.com/ tel. +31-58-2123014 mailto:info@eBOA.com?subject=Information_request fax. +31-58-2160293 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message