From owner-freebsd-questions Wed Sep 12 1:44: 0 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 23D3E37B406 for ; Wed, 12 Sep 2001 01:43:53 -0700 (PDT) Received: from wash by ns2.wananchi.com with local (Exim 3.33 #1) id 15h5bx-0008mn-00; Wed, 12 Sep 2001 11:43:09 +0300 Date: Wed, 12 Sep 2001 11:43:09 +0300 From: Odhiambo Washington To: Stephen Hurd Cc: FBSD-Q Subject: Re: SSH Password Authentication... Message-ID: <20010912114309.K6733@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , Stephen Hurd , FBSD-Q References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i X-Disclaimer: My opinions do not necessarily represent those of my employer. X-Operating-System: FreeBSD 4.4-RC i386 X-Mailer: Mutt http://www.mutt.org/ X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. X-Uptime: 11:41AM up 6 days, 19:36, 2 users, load averages: 0.04, 0.10, 0.08 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 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Stephen Hurd [20010912 06:06]: writing on the subj= ect 'RE: SSH Password Authentication...' | > Hello, I wish to setup a small script where it ssh's to another machine= , and | > then that script input's the password. How can I go about accomplishing | > this, or if someone's nice, can you write one up? Baiscally, a script = that | > will ssh to a box, and "type" in the password automatically. Thanks |=20 | that's not really allowed... it could be done, but it would be a kludge... | however, it may not be necessary: |=20 | The public key method is similar to RSA authentication described in = the | previous section except that the DSA algorithm is used instead of the | patented RSA algorithm. The client uses his private DSA key | $HOME/.ssh/id_dsa to sign the session identifier and sends the resul= t to | the server. The server checks whether the matching public key is li= sted | in $HOME/.ssh/authorized_keys2 and grants access if both the key is = found | and the signature is correct. The session identifier is derived fro= m a | shared Diffie-Hellman value and is only known to the client and the = serv- | er. This works for others, but ++NEVER++ worked for me. I did everything according to these man pages but ssh still prompts me for = a passwd. I've heard of situations where something works for others, and not for othe= rs ;-) -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. Don't ask me any questions, because I just might tell you the truth.=20 --DocE+STaALJfprDB 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 iD8DBQE7nyAdn7LIsuxjem8RAvOKAKCgpG6yApeIfHfOwyTguIo4LTCd3ACeKOMb Dd913LTFXomcj6ijlARhN/o= =8cqH -----END PGP SIGNATURE----- --DocE+STaALJfprDB-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message