From owner-freebsd-questions@FreeBSD.ORG Fri Feb 3 02:58:01 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B9BF916A420 for ; Fri, 3 Feb 2006 02:58:01 +0000 (GMT) (envelope-from davidbryce@fastmail.fm) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 644E543D46 for ; Fri, 3 Feb 2006 02:58:01 +0000 (GMT) (envelope-from davidbryce@fastmail.fm) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id B1EFAD33300 for ; Thu, 2 Feb 2006 21:57:59 -0500 (EST) Received: from web2.messagingengine.com ([10.202.2.211]) by frontend1.internal (MEProxy); Thu, 02 Feb 2006 21:57:59 -0500 Received: by web2.messagingengine.com (Postfix, from userid 99) id 37B5BECE0; Thu, 2 Feb 2006 21:57:49 -0500 (EST) Message-Id: <1138935469.6152.253435580@webmail.messagingengine.com> X-Sasl-Enc: 0CzPV4a54rZBAJjEswwjecdSGwTzxJwXJ3WwM4tHlP43 1138935469 From: "david bryce" To: freebsd-questions@freebsd.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 5022 (F2.73; T1.15; A1.64; B3.05; Q3.03) Date: Fri, 03 Feb 2006 13:57:49 +1100 Subject: Attention: Garrett Cooper (Was: SSH with Public Key Authentication) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2006 02:58:01 -0000 On Feb 1, 2006, at 9:16 PM, david bryce wrote: > It looks like someone has installed the ssh2 package on this machine > (using "pkg_add -r ssh2"). So this is not a standard freebsd ssh > installation. In fact, testing on another box with freebsd 6, I > can connect with Putty using public key authentication. Does > anyone know how to get the standard ssh to work on this machine > without upsetting things too much? It is currently running a > mail server and cvs, so I'm ginger about doing anything radical > on it. Doing a ps -ax shows that it's sshd2 that is running, and > not sshd. But the binaries ARE there for sshd. Except the > hostkey doesn't seem to be there. Could fixing this be as simple > as creating a hostkey for sshd as well, and running it on a > different port than sshd2 is running on? Hi All, We finally got everything to work using sshd2 (the other option was to remove sshd2 and use sshd, but we got sshd2 to work). All we had to do was generate the key on the server instead of using puttygen (with "ssh-keygen2"), then put a line pointing to the public key in the ".ssh2/authorization" file. Then we copied the private key to the windows boxes, opened it in puttygen and saved it again (to convert it to putty's format), put it in pagent, and everything works! Regarding the previous thread about CVS: CVS imports now work perfectly (using the CVSUMASK, which now works because we're using SSH instead of pserver connections). Thank you very much to everyone who helped us getting this to work! This mailing list is terrific, and you guys are great! Thanks! Regards, DB -- david bryce davidbryce@fastmail.fm -- http://www.fastmail.fm - Email service worth paying for. Try it for free