Blog

Running sshd on gentoo (1 comment)

Added by Christoph Kappel about 7 years ago

I got this new vserver and I decided to use it as Gentoo buildslave. Just after installing the image I had no working ssh. Reading the log I stumbled across this:

Jun 17 14:46:17 vadmin234 sshd[3519]: Server listening on :: port 22.
Jun 17 14:46:17 vadmin234 sshd[3519]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Jun 17 14:46:23 vadmin234 sshd[3519]: Received signal 15; terminating.

Looks like sshd binds port 22 on :: and tries to bind then the same port on 0.0.0.0 which obviously can't work. This is overall a bit cumbersome, because I don't have any ipv6 address for this machine.

A solution is either to remove ipv6 support from the kernel or even better say sshd which address it should use:

ListenAddress 0.0.0.0

Also available in: Atom RSS