From owner-freebsd-questions Thu Jun 27 19:44:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from nycsmtp1out.rdc-nyc.rr.com (nycsmtp1out.rdc-nyc.rr.com [24.29.99.226]) by hub.freebsd.org (Postfix) with ESMTP id DE1E337B400 for ; Thu, 27 Jun 2002 19:44:49 -0700 (PDT) Received: from despammed.com (66-108-172-188.nyc.rr.com [66.108.172.188]) by nycsmtp1out.rdc-nyc.rr.com (8.12.1/Road Runner SMTP Server 1.0) with SMTP id g5S2hes3023067; Thu, 27 Jun 2002 22:43:41 -0400 (EDT) Date: Thu, 27 Jun 2002 22:44:31 -0500 From: Scott Robbins To: Wayne Pascoe Cc: Lord Raiden , freebsd-questions@FreeBSD.ORG Subject: Re: ssh question Message-ID: <20020628034431.GA3546@scott1.homeunix.net> Mail-Followup-To: Wayne Pascoe , Lord Raiden , freebsd-questions@FreeBSD.ORG References: <4.2.0.58.20020626145348.009c1830@pop.netzero.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i 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 On Thu, Jun 27, 2002 at 08:51:18AM +0000, Wayne Pascoe wrote: > Lord Raiden writes: > > > > > config_file" way of forcing ssh to use your config file of preference, > > is there a setting in a file somewhere that SSHD looks at that tells > > Possibly a compile time option. > > > it to look at a particular config file by default? Cause I'm not sure > > it's going to want to use my default config file > > "/etc/ssh/sshd_config" next time I reboot. It's working right now > > using that file, but I want it to see that file each time > > If you've upgraded openssh from ports, then in your rc.conf you need > the following line: > > sshd_program="/usr/local/sbin/sshd" > sshd_flags="-f /etc/ssh/sshd_config" Yes, but don't you want it to use the new sshd_config file, that's in /usr/local/etc/ssh/sshd_config? I did a bit of testing (like renaming the /etc/ssh/sshd_config file, etc) and it seems that if one adds the first line you mention, the sshd_program line, and turns off the enable_sshd="YES" that, and, of course, lastly changing the new /usr/local/etc/rc.d/sshd.sh.sample to /usr/local/etc/rc.d/sshd.sh that upon boot, it will boot the /usr/local/ one which will read the /usr/local/etc/ssh/sshd_config file. As Jonathan pointed out, if you have it read the /etc/sshd_config file, the next time you do make world, it wants to put back the older (2.9) /etc/ssh/sshd_config. Of course, one can avoid that with mergemaster, but Jonathan's way seems the easiest and least error-prone. > > This will use the sshd binary that the port installed (instead of the > base system one) and whatever config file you want. > > > automatically when it first boots. Any recommendations on how to fix > > this? Or does it do that anyways even with the new version and I'm > > See above. Of course, I ~could~ be wrong. :) Sigh, just ask my wife. Scott Robbins To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message