From owner-freebsd-questions@FreeBSD.ORG Thu Feb 2 06:30:13 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 1F26916A420 for ; Thu, 2 Feb 2006 06:30:13 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90A2343D49 for ; Thu, 2 Feb 2006 06:30:12 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout4.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k126U9gP031539 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Feb 2006 22:30:10 -0800 X-Auth-Received: from [192.168.0.23] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k126U1rk008050 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 1 Feb 2006 22:30:07 -0800 Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <1138857366.31138.253348990@webmail.messagingengine.com> References: <1138851222.22515.253344145@webmail.messagingengine.com> <1138851479.22819.253344183@webmail.messagingengine.com> <20060202042447.GA15215@reddwarf.local> <1138857366.31138.253348990@webmail.messagingengine.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7CDFE393-71FE-40F9-BFEA-0FF3F60636B8@u.washington.edu> Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Wed, 1 Feb 2006 22:31:17 -0800 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.746.2) X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: 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: Thu, 02 Feb 2006 06:30:13 -0000 On Feb 1, 2006, at 9:16 PM, david bryce wrote: > > On Wed, 1 Feb 2006 23:24:47 -0500, "Clayton Scott Kern" >> >> What's the permissions for the .ssh directory. I had problems in the >> past if it's not 700. There was an entry in /var/log/messages or its >> equivalent, stating as such. >> >> This would come up on new systems, because I usually had to create >> the >> .ssh directory and the umask would cause it to have 755. >> >> -- >> Clayton Scott Kern >> ckern1@twcny.rr.com The software stated it required >> UNIX System Administrator Microsoft Windows 2000 or higher, >> FreeBSD, Linux, Solaris & so I installed FreeBSD. >> HP-UX > > > Thanks, Clayton! > > 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? > > Thank you! > > Regards, > > DB > > -- > david bryce > davidbryce@fastmail.fm Add sshd_enable="YES" to /etc/rc.conf and for the time being if you don't want to reboot, run "/etc/rc.d/sshd start". Make sure to turn off and disable sshd2 though (there might be a reference to it in rc.conf as well) by running /usr/local/etc/rc.d/sshd2 stop (or something like that). If you're logged in remotely and don't have physical access to the machine, just run /usr/local/etc/rc.d/sshd2 stop & /etc/rc.d/sshd start. Note the single ampersand--very important. That should stop the first sshd daemon and start the one you want. -Garrett