From owner-freebsd-questions Tue Sep 11 20: 6:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from server1.lordlegacy.org (lordlegacy.org [209.61.182.147]) by hub.freebsd.org (Postfix) with ESMTP id 64E9A37B406 for ; Tue, 11 Sep 2001 20:06:21 -0700 (PDT) Received: from sharon ([216.13.207.127]) by server1.lordlegacy.org (8.9.3/8.9.3) with SMTP id RAA31527; Tue, 11 Sep 2001 17:17:24 -0500 From: "Stephen Hurd" To: "Eric Lam" , "FreeBSD Questions" Subject: RE: SSH Password Authentication... Date: Tue, 11 Sep 2001 21:15:13 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal 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 > 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 that's not really allowed... it could be done, but it would be a kludge... however, it may not be necessary: 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 result to the server. The server checks whether the matching public key is listed in $HOME/.ssh/authorized_keys2 and grants access if both the key is found and the signature is correct. The session identifier is derived from a shared Diffie-Hellman value and is only known to the client and the serv- er. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message