Maybe I should have added to my message that I am running production servers where I cannot stop sshd (except for restarts). And, of course, I am constantly checking my systems with netstat and lsof. There is only 1 process showing up as listening on :22 (when sshd is running, no process if it is not running). Anyway, sshd delivers the message 'error: Bind to port 22 on 0.0.0.0 failed: Address already in use.' when I restart sshd, although sshd seems to be running fine. I do not understand this.
I have seen that too.
It never caused any trouble though.
It may have happened that the running sshd hasn't been stopped (for an obscure reason unknown to me...). Please open a new connection to your host and use the command ps faux to see which daemon is the parent of the daemon serving your new connection. "echo $$" gives you the pid of your shell. Check the starting time of the parent daemon and verify that its pid is written to the file /var/run/sshd.pid. If this is not the case or if you are under the impression that the daemon hasn't been restarted when you wanted it to, then kill this daemon by hand with the kill command and run "rcsshd start" by hand again. Don't log off unless you can log on again. :-)
Best regards Christian Laursen
Roman.
--
- -
| Roman Drahtmüller