Date: Sun, 21 Jul 2002 19:37:52 +0200 From: thrawn@linux.nu (Mattias Björk) To: m.seaman@infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Re: Expect script problem with ssh login Message-ID: <3d3af170047ef1.17608732@not right> References: <20020720230922.GB25101@happy-idiot-talk.infracaninophi>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3d3af170047ef1.17608732>