Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2002 12:55:20 -0700
From:      fred@timogen.com
To:        <freebsd-questions@freebsd.org>
Subject:   Why my no-password authentication does not work
Message-ID:  <012a01c23739$e64cc690$7d05a8c0@fred>

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff><FONT face=3DArial size=3D2>
<P>hi,</P>
<P>I follow the following steps to set up two linux machines connected =
with=20
non-password authentication, why is it not work?</P>
<P>Could u give me some suggestions?</P>
<P>The non-password authentication is done with keys.&nbsp; And it's =
done like=20
this.</P>
<UL>
  <LI>Run <EM>ssh-keygen</EM> on the source machine. &nbsp; Accept the =
default=20
  values for all questions.&nbsp; Be sure to supply an empty =
passphrase.&nbsp;=20
  This will create two files under <KBD>.ssh</KBD> in your home =
directory.=20
  &nbsp; These files are <KBD>~/.ssh/identity</KBD> and=20
  <KBD>~/.ssh/identity.pub</KBD>. &nbsp; The first file should not be =
revealed=20
  to anyone. &nbsp; The second file is public and contains your public =
key.=20
  <LI>Copy the contents of <KBD>~/.ssh/identity.pub</KBD> to the =
destination=20
  machine and place it within <KBD>~/.ssh/authorized_keys</KBD>.&nbsp; =
Be sure=20
  to name the file correctly. </LI></UL>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Fred Zhang</DIV></FONT></BODY></HTML>

------=_NextPart_000_0127_01C236FF.323C7AE0--


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?012a01c23739$e64cc690$7d05a8c0>