From owner-freebsd-questions Sun Jul 21 0:35:32 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 BE1C437B400 for ; Sun, 21 Jul 2002 00:35:30 -0700 (PDT) Received: from koa.aloha.com (koa.aloha.com [206.127.224.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id B81EF43E58 for ; Sun, 21 Jul 2002 00:35:19 -0700 (PDT) (envelope-from dunng@aloha.com) Received: from vaiosr7k.ozland (atm-251-63.pixi.com [206.127.251.63]) by koa.aloha.com (8.12.2/8.12.2) with ESMTP id g6L7T0Hn011586 for ; Sat, 20 Jul 2002 21:29:01 -1000 (HST) Received: by vaiosr7k.ozland (Postfix, from userid 501) id BE9CFB377; Sat, 20 Jul 2002 12:09:40 -1000 (HST) To: thrawn@linux.nu, freebsd-questions@FreeBSD.ORG From: Gary Dunn Subject: Re: Expect script problem with ssh login X-Mailer: Pygmy (v0.5.13) Date: Sat, 20 Jul 2002 12:09:40 HST In-Reply-To: <3d39d3689a81a4.61372381@not right> Content-type: text/plain Content-Transfer-Encoding: quoted-printable Message-Id: <20020720220940.BE9CFB377@vaiosr7k.ozland> 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 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 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