Hi All,

I have a question that might be off-topic for this list, but then again 
maybe not. How can i tell if a given sshd process is serving ssh? Other than trying to 
connect to 
it, that is.

This situation i'm trying to work with is like this: There is sshd 
running on a box, and there is a script watching to make sure that it's running. But 
if someone
logs in via ssh, another sshd process gets spawned for that connection. If that person 
were to 
somehow kill the sshd server process (the parent of the spawned sshd) then s/he could 
continue on 
with the connection but nobody else would be able to get in. The watchdog would not 
know this 
because it would see a sshd in the process list, which is all it is checking for. But 
i would like

it to be able to check if the sshd that it's seeing in the process list is actually 
serving ssh 
or if it is not serving ssh.

Does that question make sense?

Thanks,
j 

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to