Cannot bind any address

Markus Werle numerical.simulation at
Fri Oct 5 17:08:05 EST 2001


I just post this as a kind of backup or reminder,
so future searches will lead to the solution.

It is possible to change the openssh version
on the fly without cutting existing connections.
One just moves the old crap to another place,
installs the new binaries and everything is fine.

When users log out and in again they are
using the new version without any further pain.

This works only if You kill -15 the master sshd
(the childs stay alive)
If You do not kill it, You will get error messages of the

# /opt/openssh-2.9.9p2/sbin/sshd -d
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on ::.
debug1: Bind to port 22 on
Cannot bind any address.

Took me quite a while to find out I forgot to kill
the old one.

feature request:
sshd detects a concurring sshd is running and gives an
appropriate error message.


More information about the openssh-unix-dev mailing list