Re: [expert] What is sshd-restarter?

2003-07-03 Thread David Rankin
Greg,

I also use PuTTy to access my server at work from home. I have resisted
upgrading because, frankly, I'm really happy with my current setup. I get no
connection errors while using PuTTy even in extended sessions. I can't speak to
the cause and effect of ssh-restarter on the error you receive because it aint
running in 7.2. But the bottom line seems to be that if ssh-restarter is simply
a script that checks to see if sshd is running every 5 minutes, then the
overhead of ssh-restarter is negligable. Perhaps you can check the script for a
setting that will let you set it to run every 30 minutes instead of every 5 or
maybe there is a -- nolog switch. I like the idea of having sshd restarted if
for some reason it should die. It's kind of a safety net that insures ssh access
will be available when you need it.

Greg Meyer wrote:

 On Wednesday 02 July 2003 03:31 pm, David Rankin wrote:
  Greg,
 
  At least in 7.2 I have had sshd running for over 400 days without
  any stops. My guess is that it is just an extra precaution in case of
  power failure and the event that sshd isn't started in the default
  run-level.
 
 As an anal accountant, I just hate it showing up in my logs every 5 minutes,
 especially when it is always running.  Perahps there is a way for it to only
 make a log entry if it actually has to do something.

 I wonder also if it has anything to do with some of the connection errors I
 have been getting since being on 9.1.  I tunnel vnc through ssh so I can
 access my machine from work.  I find that 3 or 4 times throughout the day,
 PuTTy is giving me a connection error.  Since I uninstalled sshd-monitor, I
 have not had this happen.  Perhaps somehow the restart blows the connection.

 --
 /g

 Outside of a dog, a man's best friend is a book, inside
 a dog it's too dark to read -Groucho Marx

   
 Want to buy your Pack or Services from MandrakeSoft?
 Go to http://www.mandrakestore.com

--
David C. Rankin, J.D., P.E.
RANKIN * BERTIN, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What is sshd-restarter?

2003-07-03 Thread David Guntner
Greg Meyer grabbed a keyboard and wrote:
 I asked this question on newbie, and I got no answer, so I'll repost here.

 Is anybody wiling to enlighten me as to what sshd-restarter does, and why
 it runs every 5 minutes?

It does exactly what the name implies.  It checks for a dead ssh daemon,
and restarts it.

Typically, it never finds anything wrong and so it doesn't do anything. 
But it is small, and hurts nothing.  Plus, if you're travelling and are
depending on ssh for your way to login remotely, having the ssh daemon
decide to die then when you can't directly do anthing about it is a Bad
Thing.

Thus, I've always left the ssh-monitor package in and running.  Like I
said, it has a really small footprint, so I consider it to be cheap
insurance. :-)

  --Dave


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What is sshd-restarter?

2003-07-03 Thread Greg Meyer
On Thursday 03 July 2003 05:40 pm, David Guntner wrote:
 Greg Meyer grabbed a keyboard and wrote:
  I asked this question on newbie, and I got no answer, so I'll repost
  here.
 
  Is anybody wiling to enlighten me as to what sshd-restarter does, and why
  it runs every 5 minutes?

 It does exactly what the name implies.  It checks for a dead ssh daemon,
 and restarts it.

 Typically, it never finds anything wrong and so it doesn't do anything.
 But it is small, and hurts nothing.  Plus, if you're travelling and are
 depending on ssh for your way to login remotely, having the ssh daemon
 decide to die then when you can't directly do anthing about it is a Bad
 Thing.

 Thus, I've always left the ssh-monitor package in and running.  Like I
 said, it has a really small footprint, so I consider it to be cheap
 insurance. :-)

I started having problems with my ssh sessions getting disconnected, so I 
started looking into this (which is why I asked the question originally) and 
this is what I have learned.

It appears that the ssh-restarter script is supposed to check and see if sshd 
is running.  If it is, the script is supposed to exit, if it is not, it 
should restart the daemon.  I think the sshd-restarter was restarting sshd 
periodically on me, even though it was running, and cutting off my ssh 
sessions.  Since I have turned it off, I have not had a remote disconnect 
event.  I used to get three to four a day, and in two days of 8+ hour ssh 
sessions, I have not had one.
-- 
/g

Outside of a dog, a man's best friend is a book, inside
a dog it's too dark to read -Groucho Marx

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[expert] What is sshd-restarter?

2003-07-02 Thread Greg Meyer
I asked this question on newbie, and I got no answer, so I'll repost here.

Is anybody wiling to enlighten me as to what sshd-restarter does, and why it 
runs every 5 minutes?
-- 
/g

Outside of a dog, a man's best friend is a book, inside
a dog it's too dark to read -Groucho Marx

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What is sshd-restarter?

2003-07-02 Thread Thomas Backlund
From: Greg Meyer [EMAIL PROTECTED]
 I asked this question on newbie, and I got no answer, so I'll repost
here.

 Is anybody wiling to enlighten me as to what sshd-restarter does, and why
it
 runs every 5 minutes?
 -- 

If you combine the name with the interval it runs at,
it should not be to hard to guess ... ;-)

But anyways...

It's a script that checks if the ssh daemon is running,
and if not... it will restart it..

Regards

thomas.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What is sshd-restarter?

2003-07-02 Thread Greg Meyer
On Wednesday 02 July 2003 10:04 am, Thomas Backlund wrote:

 It's a script that checks if the ssh daemon is running,
 and if not... it will restart it..

I guess the question I should have askled is why is it necessary?  Is sshd 
known to stop on it's own?

I have removed the sshd-monitor package and have not noticed a problem with my 
sshd deamon.
-- 
/g

Outside of a dog, a man's best friend is a book, inside
a dog it's too dark to read -Groucho Marx

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What is sshd-restarter?

2003-07-02 Thread Jack Coates
On Wed, 2003-07-02 at 08:23, Greg Meyer wrote:
 On Wednesday 02 July 2003 10:04 am, Thomas Backlund wrote:
 
  It's a script that checks if the ssh daemon is running,
  and if not... it will restart it..
 
 I guess the question I should have askled is why is it necessary?  Is sshd 
 known to stop on it's own?
 
 I have removed the sshd-monitor package and have not noticed a problem with my 
 sshd deamon.

well, not having ssh running is a real pain on a box you can't access
physically :-)

Of course if it won't run because an upgrade failed or the config file
is wrong, you're screwed no matter what.
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...
http://www.monkeynoodle.org/resume.html


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What is sshd-restarter?

2003-07-02 Thread James Sparenberg
On Wed, 2003-07-02 at 08:36, Jack Coates wrote:
 On Wed, 2003-07-02 at 08:23, Greg Meyer wrote:
  On Wednesday 02 July 2003 10:04 am, Thomas Backlund wrote:
  
   It's a script that checks if the ssh daemon is running,
   and if not... it will restart it..
  
  I guess the question I should have askled is why is it necessary?  Is sshd 
  known to stop on it's own?
  
  I have removed the sshd-monitor package and have not noticed a problem with my 
  sshd deamon.
 
 well, not having ssh running is a real pain on a box you can't access
 physically :-)
 
 Of course if it won't run because an upgrade failed or the config file
 is wrong, you're screwed no matter what.

Yep.. and having it for a remote situation (Like I live in California
and I Have a corporate server in Michigan) can be a real plus. 
Otherwise the only recourse is to have the guys in Michigan reboot the
box and hope that ssh restarts.  On a box that you are always in front
of (Like a laptop) I'd say it's not so needed... but for a remote
server. It can be a godsend.

James



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What is sshd-restarter?

2003-07-02 Thread David Rankin
Greg,

   At least in 7.2 I have had sshd running for over 400 days without 
any stops. My guess is that it is just an extra precaution in case of 
power failure and the event that sshd isn't started in the default 
run-level.

Greg Meyer wrote:

On Wednesday 02 July 2003 10:04 am, Thomas Backlund wrote:
 

It's a script that checks if the ssh daemon is running,
and if not... it will restart it..
   

I guess the question I should have askled is why is it necessary?  Is sshd 
known to stop on it's own?

I have removed the sshd-monitor package and have not noticed a problem with my 
sshd deamon.
 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
 

--
David C. Rankin, J.D., P.E.
RANKIN * BERTIN, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What is sshd-restarter?

2003-07-02 Thread Greg Meyer
On Wednesday 02 July 2003 03:31 pm, David Rankin wrote:
 Greg,

 At least in 7.2 I have had sshd running for over 400 days without
 any stops. My guess is that it is just an extra precaution in case of
 power failure and the event that sshd isn't started in the default
 run-level.

As an anal accountant, I just hate it showing up in my logs every 5 minutes, 
especially when it is always running.  Perahps there is a way for it to only 
make a log entry if it actually has to do something.

I wonder also if it has anything to do with some of the connection errors I 
have been getting since being on 9.1.  I tunnel vnc through ssh so I can 
access my machine from work.  I find that 3 or 4 times throughout the day, 
PuTTy is giving me a connection error.  Since I uninstalled sshd-monitor, I 
have not had this happen.  Perhaps somehow the restart blows the connection.

-- 
/g

Outside of a dog, a man's best friend is a book, inside
a dog it's too dark to read -Groucho Marx

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What is sshd-restarter?

2003-07-02 Thread James Sparenberg
On Wed, 2003-07-02 at 13:46, Greg Meyer wrote:
 On Wednesday 02 July 2003 03:31 pm, David Rankin wrote:
  Greg,
 
  At least in 7.2 I have had sshd running for over 400 days without
  any stops. My guess is that it is just an extra precaution in case of
  power failure and the event that sshd isn't started in the default
  run-level.
 
 As an anal accountant, I just hate it showing up in my logs every 5 minutes, 
 especially when it is always running.  Perahps there is a way for it to only 
 make a log entry if it actually has to do something.
 
 I wonder also if it has anything to do with some of the connection errors I 
 have been getting since being on 9.1.  I tunnel vnc through ssh so I can 
 access my machine from work.  I find that 3 or 4 times throughout the day, 
 PuTTy is giving me a connection error.  Since I uninstalled sshd-monitor, I 
 have not had this happen.  Perhaps somehow the restart blows the connection.

Makes sense.  If it's happening every 5 minutes your chances of coming
in at just the wrong time are pretty good.  There should have been a
config file somewhere that would allow for the changing of the time
interval.  But... if it's gone and it works... don't fix it *grin*

James



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com