Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2007 21:07:21 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Noah <admin2@enabled.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sshd attempting to start twice?
Message-ID:  <20070226190721.GA7434@kobe.laptop>
In-Reply-To: <45E32743.2010405@enabled.com>
References:  <45E32743.2010405@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-02-26 10:30, Noah <admin2@enabled.com> 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 :-)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070226190721.GA7434>