From owner-freebsd-questions@FreeBSD.ORG Fri Jul 11 07:30:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CB1F106566B for ; Fri, 11 Jul 2008 07:30:15 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id CFFBE8FC1D for ; Fri, 11 Jul 2008 07:30:14 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m6B7U6VB049730; Fri, 11 Jul 2008 08:30:08 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.6.0 smtp.infracaninophile.co.uk m6B7U6VB049730 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1215761408; bh=5n3x/tFzCLHwg0 togpMHNB72sYAFHGWA6hXZ2d/u/+A=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<48770BFD.9050902@infracaninophile.co.uk>|Date:=20Fri,=2 011=20Jul=202008=2008:30:05=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.14=20(X11/20080607)|MIME-Version:=201 .0|To:=20EdwardKing=20|CC:=20FreeBSD=20|Subject:=20Re:=20inetd[860]:=20ssh/tcp:=20 bind:=20Address=20already=20in=20use|References:=20<00c601c8e322$ef dc6210$3f83a8c0@neusofteaf5839>|In-Reply-To:=20<00c601c8e322$efdc62 10$3f83a8c0@neusofteaf5839>|X-Enigmail-Version:=200.95.6|Content-Ty pe:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol =3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"------------e nig43EC8479C04EE7BB6E5808BC"; b=a4PYyWzFB+Fq3cnRSRcmR5YgKy2K9MQfeyT 4wDb0voJg79d5Aq+cuprDrk0HDAjyI3StGgK2hwPgsd99SDLQLszcqMSvW0fskXbQkU K6aAhpWUqbFSWgf07ij/WAsW+ngzOOMA5uHjHvJP8XXWr7AskUKZSQShJ5mLnQnCsT9 7c= Message-ID: <48770BFD.9050902@infracaninophile.co.uk> Date: Fri, 11 Jul 2008 08:30:05 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.14 (X11/20080607) MIME-Version: 1.0 To: EdwardKing References: <00c601c8e322$efdc6210$3f83a8c0@neusofteaf5839> In-Reply-To: <00c601c8e322$efdc6210$3f83a8c0@neusofteaf5839> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig43EC8479C04EE7BB6E5808BC" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 11 Jul 2008 08:30:08 +0100 (BST) X-Virus-Scanned: ClamAV 0.93.1/7689/Fri Jul 11 06:09:27 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD Subject: Re: inetd[860]: ssh/tcp: bind: Address already in use 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: Fri, 11 Jul 2008 07:30:15 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig43EC8479C04EE7BB6E5808BC Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable EdwardKing wrote: > I use FreeBSD7.0,I find some time it raise following information: > inetd[860]: ssh/tcp: bind: Address already in use >=20 > I look up my /etc/rc.conf file,it contains: >=20 > inetd_enable=3D"YES" > sshd_enable=3D"YES" >=20 > /etc/inetd.conf file contains: >=20 > ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4 > #ssh stream tcp6 nowait root /usr/sbin/sshd sshd -i -6 >=20 > Where wrong with my BSD system? How to solve it? Well, you're already 99% of the way there. You can't run sshd both as a standalone daemon and as a service to be started from inetd. As the error message says, they both try and bind to the same network port which is never going to work. Running sshd out of inetd is weird and unnatural, so I suggest you just comment out the ssh line in inetd.conf and restart the inetd service: /etc/rc.d/inetd restart Then make sure sshd is running happilly: /etc/rc.d/sshd restart (bouncing sshd like this is even safe to do if you're logged in via ssh...) Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig43EC8479C04EE7BB6E5808BC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkh3C/4ACgkQ8Mjk52CukIxduACffHE0R3NHb4T1Rzy9QYkxFJkq YZwAoJRkdADP4iO8YvANuyk7hSvOt1GA =huFL -----END PGP SIGNATURE----- --------------enig43EC8479C04EE7BB6E5808BC--