From owner-freebsd-questions@FreeBSD.ORG Wed Aug 31 16:16:59 2005 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 C65DA16A41F for ; Wed, 31 Aug 2005 16:16:59 +0000 (GMT) (envelope-from smalone@udallas.edu) Received: from mail.udallas.edu (mail.udallas.edu [192.91.253.73]) by mx1.FreeBSD.org (Postfix) with SMTP id 5D0EF43D46 for ; Wed, 31 Aug 2005 16:16:58 +0000 (GMT) (envelope-from smalone@udallas.edu) Received: (qmail 688 invoked from network); 31 Aug 2005 16:19:45 -0000 Received: from unknown (HELO ?10.3.20.101?) (10.3.20.101) by 0 with SMTP; 31 Aug 2005 16:19:45 -0000 Message-ID: <4315D7FA.1080106@udallas.edu> Date: Wed, 31 Aug 2005 11:16:58 -0500 From: "Sean P. Malone" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "albi@scii.nl" References: <4314C9E0.5020607@udallas.edu> <20050830231520.5559124d.albi@scii.nl> In-Reply-To: <20050830231520.5559124d.albi@scii.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to get /etc/ssh back X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: smalone@udallas.edu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 16:16:59 -0000 Thanks! I installed openssh-portable and that worked. I did have to create symlinks from /etc/ssh to /usr/local/etc/ssh and /usr/sbin/sshd to /usr/local/sbin/sshd. In my case, the sshd_program line in /etc/rc.conf didn't force the system to use the portable sshd as opposed to the base. Thus, I commented out the line and just used a symlink. Thanks, again! Sean albi@scii.nl wrote: > On Tue, 30 Aug 2005 16:04:32 -0500 > "Sean P. Malone" wrote: > > >>I "mistakenly" deleted /etc/ssh along with all of the keyfiles and, most >>importantly, ssd_config. I was attempting to completely >>remove/reinstall openssh. >> >>I've tried both the port and package. The install program doesn't >>complain that there is no /etc/ssh. I had assumed that it would create >>it but it evidently does not. >> >>The system does ask for entropy upon the next reboot but the generation >>of the keys and startup of sshd fail since there is no /etc/ssh. >> >>If the install program doesn't create /etc/ssh, what does and how do I >>get it back? > > > first of all, /etc/ssh is the config-home of the "base" ssh that comes > with FreeBSD by default (so you can use "make world" to get it back") > > however the openssh-portable port is storing these config-files > in /usr/local/etc/ssh, if you want to switch to the port instead of the > base-system ssh, then do the following : > > sshd_enable="YES" > sshd_program="/usr/local/sbin/sshd" > (see also : /usr/share/examples/etc/defaults/rc.conf) > > after this is working well, imo it's a good idea to > remove /usr/sbin/sshd and /usr/bin/ssh* and /etc/ssh (or > replace them with symlinks to the port-binaries etc.) > > HTH > > >