Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2008 08:30:05 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        EdwardKing <zhangsc@neusoft.com>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: inetd[860]: ssh/tcp: bind: Address already in use
Message-ID:  <48770BFD.9050902@infracaninophile.co.uk>
In-Reply-To: <00c601c8e322$efdc6210$3f83a8c0@neusofteaf5839>
References:  <00c601c8e322$efdc6210$3f83a8c0@neusofteaf5839>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



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