From owner-freebsd-questions  Mon Sep  3  7:18:10 2001
Delivered-To: freebsd-questions@freebsd.org
Received: from ns2.wananchi.com (mail.wananchi.com [62.8.64.4])
	by hub.freebsd.org (Postfix) with ESMTP id 894DB37B401
	for <freebsd-questions@freebsd.org>; Mon,  3 Sep 2001 07:17:43 -0700 (PDT)
Received: from wash by ns2.wananchi.com with local (Exim 3.33 #1)
	id 15duX4-0008XF-00
	for freebsd-questions@freebsd.org; Mon, 03 Sep 2001 17:16:58 +0300
Date: Mon, 3 Sep 2001 17:16:57 +0300
From: Odhiambo Washington <wash@wananchi.com>
To: FBSD-Q <freebsd-questions@freebsd.org>
Subject: SSH and connection automation
Message-ID: <20010903171657.A31458@ns2.wananchi.com>
Mail-Followup-To: Odhiambo Washington <wash@wananchi.com>,
	FBSD-Q <freebsd-questions@freebsd.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB"
Content-Disposition: inline
User-Agent: Mutt/1.3.20i
X-Disclaimer: My opinions do not necessarily represent those of my employer.
X-Operating-System: FreeBSD 4.3-STABLE i386
X-Mailer: Mutt http://www.mutt.org/
X-Designation: Systems Administrator, Wananchi Online Ltd.
X-Location: Nairobi, KE, East Africa.
X-Uptime: 5:08PM  up 11 days, 21:15, 1 user, load averages: 1.22, 1.20, 1.17
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-questions.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions>
X-Loop: FreeBSD.ORG


--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I was today trying to be able to execute commands on a remote machine
without supplying a passwd using ssh. Sadly, even just login still prompts
me for a passwd.=20

Here is what I did:

1. Generate the key pair ($HOME/.ssh/identity.pub and identity)
2. Exported identity.pub to 3 hosts which I usually connect to
   I copied (not renamed) the identity.pub to authorized_keys


=46rom ssh manpage
"
ssh implements the RSA authentication protocol automatically.  The user
creates his/her RSA key pair by running ssh-keygen(1).  This stores
the private key in $HOME/.ssh/identity and the public key in
$HOME/.ssh/identity.pub in the user's home directory.  The user
should then copy the identity.pub to $HOME/.ssh/authorized_keys in his/her
home directory on the remote machine (the authorized_keys file corresponds
to the conventional $HOME/.rhosts file, and has one key per line, though
the lines can be very long).  After this, the user can log in without
giving the password.  RSA authentication is much more secure than rhosts
authentication.
"

What am I missing?

I was thinking in the same lines as rlogin. My username is the same in=20
all these machines.


TIA


-Wash

--
Odhiambo Washington
Wananchi Online Ltd.,
wash@wananchi.com 1st Flr Loita Hse.
Tel: 254 2 313985 Loita Street.,
Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE.

I would have had more fun at a funeral.=20

--tThc/1wpZn/ma/RB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7k5DZn7LIsuxjem8RArlGAKCxW8DEPQBNBModZQOT7AD8wwTXwACfc9MK
X+x9RZU1Z+YXskotOlAK+Q0=
=ykOV
-----END PGP SIGNATURE-----

--tThc/1wpZn/ma/RB--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message