Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2002 00:09:22 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Mattias =?iso-8859-1?Q?Bj=F6rk?= <thrawn@linux.nu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Expect script problem with ssh login
Message-ID:  <20020720230922.GB25101@happy-idiot-talk.infracaninophi>
In-Reply-To: <3d39d3689a81a4.61372381@notright>
References:  <3d39d3689a81a4.61372381@not right>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020720230922.GB25101>