From owner-freebsd-questions Sun Jul 21 10:37:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD74B37B400 for ; Sun, 21 Jul 2002 10:37:54 -0700 (PDT) Received: from cicero1.cybercity.dk (cicero1.cybercity.dk [212.242.40.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id F058843E31 for ; Sun, 21 Jul 2002 10:37:53 -0700 (PDT) (envelope-from thrawn@linux.nu) Received: from user4.cybercity.dk (fxp0.user4.ip.cybercity.dk [212.242.41.50]) by cicero1.cybercity.dk (Postfix) with ESMTP id 5AEE715FC3C; Sun, 21 Jul 2002 19:37:52 +0200 (CEST) Received: from webmail.netlink.se (webmail.cybercity.dk [212.242.40.37]) by user4.cybercity.dk (Postfix) with SMTP id A3777542A; Sun, 21 Jul 2002 19:37:46 +0200 (CEST) Reply-To: thrawn@linux.nu From: thrawn@linux.nu (Mattias Björk) To: m.seaman@infracaninophile.co.uk Subject: Re: Re: Expect script problem with ssh login Cc: freebsd-questions@freebsd.org Date: Sun, 21 Jul 2002 19:37:52 +0200 Message-Id: <3d3af170047ef1.17608732@not right> References: <20020720230922.GB25101@happy-idiot-talk.infracaninophi> X-Authenticated-IP: [62.66.14.3] X-Sender: sfp1638@post.netlink.se X-Mailer: Cybercity Webmail 1.06 (http://webmail.cybercity.dk/) MIME-version: 1.0 Content-type: text/plain; charset="iso-8859-1" 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 Hi, > On Sat, Jul 20, 2002 at 11:17:28PM +0200, Mattias Bj=F6rk wrote: > > > Hi, I have a expect script that I have some problems with. > =20 > > What I want to use this script is simply logon me on another machine and > > enter the password when ssh prompts for it.And then give me a shell as I > > Will manuly ssh to the host. > =20 > That's because ssh goes to great lengths to make it difficult to do > what you're trying to do. The justification for that is that > considering the amount of effort put in to make ssh secure for network > transactions, it would be a crying shame to spoil it all by > encouraging people to keep system passwords in various scripts in > plain text. > > What you need to do is investigate the use of ssh-agent(1) to securely > hold your authentication credentials. Check out the ssh FAQ at > http://www.snailbook.com/ for the full details. > > Cheers, > > Matthew > > > --=20 > Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks > Savill Way > Tel: +44 1628 476614 Marlow > Fax: +44 0870 0522645 Bucks., SL7 1TH UK > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > Ok, you are right I would not be a sutch a good idea too put plainpasswords in files and use them as shellscripts. Thanks for the answer! Mvh Mattias Björk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message