From owner-freebsd-questions Thu Nov 28 10:22:21 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA07529 for questions-outgoing; Thu, 28 Nov 1996 10:22:21 -0800 (PST) Received: from rocket.Ngbert.org (ROCKET.RES.CMU.EDU [128.2.92.143]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA07524 for ; Thu, 28 Nov 1996 10:22:19 -0800 (PST) Received: from localhost (ayn@localhost) by rocket.Ngbert.org (8.7.5/8.7.3) with SMTP id NAA09713; Thu, 28 Nov 1996 13:19:33 -0500 (EST) Date: Thu, 28 Nov 1996 13:19:33 -0500 (EST) From: Andrew Y Ng To: Darryl Bowler cc: questions@freebsd.org Subject: Re: Password and Telnet In-Reply-To: <199611281301.NAA20368@blinx.lizard.org> Message-ID: Organization: Carnegie Mellon University MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- hmmm... write a file that contains all the passwds; pgp encryt that file; in ur script, run pgp to decrpt that file in the beginning; read the content of that file as the passwd; remove the file at the end. /ayn On Thu, 28 Nov 1996, Darryl Bowler wrote: > This may sound like a dumb question to ask, but... > At work I have lots of devices that I want to log into but only can via telnet. > I want to do this by a script of sorts, but the problem I have is how do I > pass a password to telnet via a script. -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBMp3XrZ6qvWJYgw1hAQEynAQAiH/OLaE9ApcOOY/wnCsq82eoJ+2a9Ys/ TTvv5dz7UU4QjlrzVZG1fNh1rrIoYSOmvjBqR/Jhbtk3ZEaC6nwnQYbOe59HhVaP 1mqSfZ7nIu64zqlKGtA9OBeRBgTJtfwvz1/WOyqRb0yZHKAsY/ZMwiPgIHtqhhI3 re13nGfVT5k= =WUaK -----END PGP SIGNATURE----- -- Andrew Y Ng http://andrew.Ngbert.org Carnegie Mellon University; ECE major, Music minor campus ph: 412/862-2836; voice mail: 412/268-6700 x30027 talk: finger ayn@andrew.Ngbert.org for online status. finger ayn@CMU.EDU for more info, such as my public key, geekcode, snail address, etc. NGBERT! http://www.Ngbert.org