Date: Sat, 20 Jul 2002 12:09:40 HST From: Gary Dunn <gdunn@mac.com> To: thrawn@linux.nu, freebsd-questions@FreeBSD.ORG Subject: Re: Expect script problem with ssh login Message-ID: <20020720220940.BE9CFB377@vaiosr7k.ozland> In-Reply-To: <3d39d3689a81a4.61372381@not right>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Jul 2002 23:17:28 +0200, Mattias Bj=F6rk wrote: > = > Hi, I have a expect script that I have some problems with. > = > 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. > = An easier and more secure way to get this functionality is to use the publi= c key feature. Generate a public-private key pair (ssh-keygen, I believe). = There are two protocols to contend with, and one requires a flag like -d. C= opy the *public* key to the remote host, append to the appropriate authoriz= ed keys file in ~/.ssh there. = When it's all set up just ssh <remote-host> and you're in. If you feel that= your user account is not very secure you can choose to have your private k= ey encrypted, but then you always have to enter the passphrase, which bring= s you back to were we began. --+---+---+-- Gary Dunn Open Slate Project http://www.aloha.com/~knowtree/ 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?20020720220940.BE9CFB377>