From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 21:15:27 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 57DE816A41F for ; Tue, 30 Aug 2005 21:15:27 +0000 (GMT) (envelope-from albi@scii.nl) Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCC9243D46 for ; Tue, 30 Aug 2005 21:15:26 +0000 (GMT) (envelope-from albi@scii.nl) Received: from aseed.demon.nl ([83.160.138.119]:9946 helo=mail.aseed.antenna.nl) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1EADS0-0004VH-1h; Tue, 30 Aug 2005 21:15:25 +0000 Received: from http.aseed.antenna.nl (unknown [192.168.0.50]) by mail.aseed.antenna.nl (Postfix) with ESMTP id 2A938154297; Tue, 30 Aug 2005 23:25:14 +0200 (CEST) Received: from localhost.localdomain (217-19-30-147.dsl.cambrium.nl [217.19.30.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by http.aseed.antenna.nl (Postfix) with ESMTP id 7BEBD5912D5; Tue, 30 Aug 2005 23:14:51 +0200 (CEST) Date: Tue, 30 Aug 2005 23:15:20 +0200 From: "albi@scii.nl" To: smalone@udallas.edu Message-Id: <20050830231520.5559124d.albi@scii.nl> In-Reply-To: <4314C9E0.5020607@udallas.edu> References: <4314C9E0.5020607@udallas.edu> X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.4; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 21:15:27 -0000 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