From owner-freebsd-questions Sun Jul 28 21:54:42 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 9291B37B400 for ; Sun, 28 Jul 2002 21:54:39 -0700 (PDT) Received: from warspite.xo.com (warspite.xo.com [207.155.248.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D96F43E31 for ; Sun, 28 Jul 2002 21:54:39 -0700 (PDT) (envelope-from fred@timogen.com) Received: from fred ([61.170.158.221]) by warspite.xo.com id AAA28499; Mon, 29 Jul 2002 00:54:32 -0400 (EDT) [ConcentricHost SMTP Relay 1.14] From: fred@timogen.com Message-ID: <012a01c23739$e64cc690$7d05a8c0@fred> To: Subject: Why my no-password authentication does not work Date: Mon, 29 Jul 2002 12:55:20 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0127_01C236FF.323C7AE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 This is a multi-part message in MIME format. ------=_NextPart_000_0127_01C236FF.323C7AE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi, I follow the following steps to set up two linux machines connected with = non-password authentication, why is it not work? Could u give me some suggestions? The non-password authentication is done with keys. And it's done like = this. a.. Run ssh-keygen on the source machine. Accept the default values = for all questions. Be sure to supply an empty passphrase. This will = create two files under .ssh in your home directory. These files are = ~/.ssh/identity and ~/.ssh/identity.pub. The first file should not be = revealed to anyone. The second file is public and contains your public = key.=20 b.. Copy the contents of ~/.ssh/identity.pub to the destination = machine and place it within ~/.ssh/authorized_keys. Be sure to name the = file correctly.=20 Regards, Fred Zhang ------=_NextPart_000_0127_01C236FF.323C7AE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

hi,

I follow the following steps to set up two linux machines connected = with=20 non-password authentication, why is it not work?

Could u give me some suggestions?

The non-password authentication is done with keys.  And it's = done like=20 this.

  • Run ssh-keygen on the source machine.   Accept the = default=20 values for all questions.  Be sure to supply an empty = passphrase. =20 This will create two files under .ssh in your home = directory.=20   These files are ~/.ssh/identity and=20 ~/.ssh/identity.pub.   The first file should not be = revealed=20 to anyone.   The second file is public and contains your public = key.=20
  • Copy the contents of ~/.ssh/identity.pub to the = destination=20 machine and place it within ~/.ssh/authorized_keys.  = Be sure=20 to name the file correctly.
 
 
 
Regards,
Fred Zhang
------=_NextPart_000_0127_01C236FF.323C7AE0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message