129bc log message - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old January 17th, 2009, 13:53
hirohitosan's Avatar
hirohitosan hirohitosan is offline
Member
 
Join Date: Nov 2008
Posts: 276
Thanks: 62
Thanked 0 Times in 0 Posts
Default log message

Hi there.
During exploring my logs I found a message that appear often:
Code:
kernel: Jan 17 11:47:38 user inetd[902]: ssh/tcp: bind: Address already in use
how can I get rid of that and from where it comes?

thanks
Reply With Quote
  #2  
Old January 17th, 2009, 14:15
ale's Avatar
ale ale is offline
Senior Member
 
Join Date: Nov 2008
Location: Roma
Posts: 1,064
Thanks: 0
Thanked 160 Times in 146 Posts
Default

Are you starting sshd with inetd?
Check the output of
Code:
$ grep sshd /etc/rc.conf
$ grep sshd /etc/inetd.conf
Reply With Quote
  #3  
Old January 17th, 2009, 14:20
hirohitosan's Avatar
hirohitosan hirohitosan is offline
Member
 
Join Date: Nov 2008
Posts: 276
Thanks: 62
Thanked 0 Times in 0 Posts
Default

yes
Code:
grep sshd /etc/rc.conf
sshd_enable="YES"
> grep sshd /etc/inetd.conf
ssh     stream  tcp     nowait  root    /usr/sbin/sshd          sshd -i -4
#ssh    stream  tcp6    nowait  root    /usr/sbin/sshd          sshd -i -6
>
Reply With Quote
  #4  
Old January 17th, 2009, 14:31
ale's Avatar
ale ale is offline
Senior Member
 
Join Date: Nov 2008
Location: Roma
Posts: 1,064
Thanks: 0
Thanked 160 Times in 146 Posts
Default

You see, you are starting it twice.
Either comment the one in /etc/rc.conf or the one in /etc/inetd.conf depending on how you want to have it started.
Reply With Quote
The Following User Says Thank You to ale For This Useful Post:
hirohitosan (January 17th, 2009)
  #5  
Old January 17th, 2009, 17:58
hirohitosan's Avatar
hirohitosan hirohitosan is offline
Member
 
Join Date: Nov 2008
Posts: 276
Thanks: 62
Thanked 0 Times in 0 Posts
Default

Thanks ... I understood. And if we are here. I disable sshd in inetd. In this case my inetd starts nothing. Does it make sense to start it at boot?

thanks
Reply With Quote
  #6  
Old January 17th, 2009, 18:03
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,825
Thanks: 30
Thanked 1,884 Times in 1,330 Posts
Default

If you don't have anything enabled in inetd.conf there's no need to start it from rc.conf at all, so you can remove the inetd_enable="YES" line from it.
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
hirohitosan (January 17th, 2009)
  #7  
Old January 17th, 2009, 20:16
hirohitosan's Avatar
hirohitosan hirohitosan is offline
Member
 
Join Date: Nov 2008
Posts: 276
Thanks: 62
Thanked 0 Times in 0 Posts
Default

Thanks. I disable inetd and reboot
Reply With Quote
  #8  
Old January 17th, 2009, 20:26
ale's Avatar
ale ale is offline
Senior Member
 
Join Date: Nov 2008
Location: Roma
Posts: 1,064
Thanks: 0
Thanked 160 Times in 146 Posts
Default

You for completeness, a reboot is not needed, you can use something like # /etc/rc.d/inetd forcestop or with # /etc/rc.d/inetd stop before commenting the line in /etc/rc.conf
Reply With Quote
The Following User Says Thank You to ale For This Useful Post:
hirohitosan (January 17th, 2009)
  #9  
Old January 17th, 2009, 21:21
hirohitosan's Avatar
hirohitosan hirohitosan is offline
Member
 
Join Date: Nov 2008
Posts: 276
Thanks: 62
Thanked 0 Times in 0 Posts
Default

Thank you. And for my full completeness, what is the difference in starting a server through inetd or standalone? Is there any suggestions in this?
Reply With Quote
  #10  
Old January 17th, 2009, 21:36
ale's Avatar
ale ale is offline
Senior Member
 
Join Date: Nov 2008
Location: Roma
Posts: 1,064
Thanks: 0
Thanked 160 Times in 146 Posts
Default

If you start it from /etc/rc.conf sshd will be up listening on (default) port 22 .
If you start it from /etc/inetd.conf, inetd will be listening on the same port. When a connection to that port is opened, inetd will start sshd and it will stop it when the connection get closed.
Reply With Quote
  #11  
Old January 18th, 2009, 00:33
hirohitosan's Avatar
hirohitosan hirohitosan is offline
Member
 
Join Date: Nov 2008
Posts: 276
Thanks: 62
Thanked 0 Times in 0 Posts
Default

Thank you. I got it
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql 5.x binary-log disable? klabacita Web & Network Services 9 July 7th, 2011 22:34
finding passwords to sites in squid log miscar Installation and Maintenance of FreeBSD Ports or Packages 6 January 26th, 2009 11:47
Append host name to log file using syslog-ng coolatt Networking 0 January 15th, 2009 09:37
renaming a syslog log file in the current date format coolatt Web & Network Services 5 January 14th, 2009 10:38
FreeBSD 7.0 message Froma System Hardware 3 December 13th, 2008 10:02


All times are GMT +1. The time now is 15:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0