RE: inetd[860]: ssh/tcp: bind: Address already in use
Either run ssh out of inetd.conf og run it as a daemon, not both. I run it as a daemon myself to do that, leave the line in /etc/rc.conf and remove the line in inetd.conf To run it out of inetd and not as a daemon, remove the line from rc.conf and leave the line in inetd.conf Ted > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of EdwardKing > Sent: Thursday, July 10, 2008 11:54 PM > To: FreeBSD > Subject: inetd[860]: ssh/tcp: bind: Address already in use > > > I use FreeBSD7.0,I find some time it raise following information: > inetd[860]: ssh/tcp: bind: Address already in use > > I look up my /etc/rc.conf file,it contains: > > inetd_enable="YES" > sshd_enable="YES" > > /etc/inetd.conf file contains: > > sshstream tcpnowait root /usr/sbin/sshd sshd -i -4 > #ssh stream tcp6 nowait root /usr/sbin/sshd sshd -i -6 > > Where wrong with my BSD system? How to solve it? > > Any idea will be appreciated! > Edward > > > -- > > Confidentiality Notice: The information contained in this e-mail > and any accompanying attachment(s) is intended only for the use > of the intended recipient and may be confidential and/or > privileged of Neusoft Group Ltd., its subsidiaries and/or its > affiliates. If any reader of this communication is not the > intended recipient, unauthorized use, forwarding, printing, > storing, disclosure or copying is strictly prohibited, and may be > unlawful. If you have received this communication in error, > please immediately notify the sender by return e-mail, and delete > the original message and all copies from your system. Thank you. > -- > - > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: inetd[860]: ssh/tcp: bind: Address already in use
EdwardKing wrote: > I use FreeBSD7.0,I find some time it raise following information: > inetd[860]: ssh/tcp: bind: Address already in use > > I look up my /etc/rc.conf file,it contains: > > inetd_enable="YES" > sshd_enable="YES" > > /etc/inetd.conf file contains: > > sshstream tcpnowait root /usr/sbin/sshd sshd -i -4 > #ssh stream tcp6 nowait root /usr/sbin/sshd sshd -i -6 > > 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 -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
inetd[860]: ssh/tcp: bind: Address already in use
I use FreeBSD7.0,I find some time it raise following information: inetd[860]: ssh/tcp: bind: Address already in use I look up my /etc/rc.conf file,it contains: inetd_enable="YES" sshd_enable="YES" /etc/inetd.conf file contains: sshstream tcpnowait root /usr/sbin/sshd sshd -i -4 #ssh stream tcp6 nowait root /usr/sbin/sshd sshd -i -6 Where wrong with my BSD system? How to solve it? Any idea will be appreciated! Edward -- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Group Ltd., its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"