From owner-freebsd-questions@FreeBSD.ORG Mon Feb 26 19:08:21 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF23B16A40A for ; Mon, 26 Feb 2007 19:08:21 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 3BE9813C4B4 for ; Mon, 26 Feb 2007 19:08:20 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l1QJ7dld032595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 26 Feb 2007 21:07:45 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id l1QJ7L2b007474; Mon, 26 Feb 2007 21:07:33 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id l1QJ7LlY007473; Mon, 26 Feb 2007 21:07:21 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 26 Feb 2007 21:07:21 +0200 From: Giorgos Keramidas To: Noah Message-ID: <20070226190721.GA7434@kobe.laptop> References: <45E32743.2010405@enabled.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45E32743.2010405@enabled.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.503, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.70, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: sshd attempting to start twice? 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: Mon, 26 Feb 2007 19:08:21 -0000 On 2007-02-26 10:30, Noah wrote: > Hi there, > > any clues why sshd is attempting to start twice? > > sshd[836]: error: Bind to port 22 on :: failed: Address already in use. > sshd[836]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use. > > here is the /etc/rc.conf of the server: > > -- sysinstall generated deltas -- # Fri Jan 26 05:42:42 2007 > # Created: Fri Jan 26 05:42:42 2007 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to /etc/defaults/rc.conf. > # This file now contains just the overrides from /etc/defaults/rc.conf. > linux_enable="YES" > named_enable="YES" > moused_enable="YES" > nfs_client_enable="YES" > nfs_server_enable="YES" > rpcbind_enable="YES" > sshd_enable="YES" > sshd_program="/usr/local/sbin/sshd" > sshd_flags="-f /etc/ssh/sshd_config" > usbd_enable="YES" > ntpd_enable="YES" > ntpd_flags="-c /etc/ntp/ntp.conf" > ntupdate="YES" > ntpdate_config="/etc/ntp/ntp.conf" > nfs_client_enable="YES" > nfs_client_flags="-n 4" > inetd_enable="YES" > syslog_ng_enable="YES" > syslog_ng_pid="/var/run/syslog-ng.pid" I see you have switched the `rc.conf' path of sshd to point to the version of sshd in `/usr/local/sbin'. Make sure that you don't have *both* this setting *and* an executable script in /usr/local/etc/rc.d :-)