Running sshd on gentoo (1 comment)
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: Server listening on :: port 22. Jun 17 14:46:17 vadmin234 sshd: error: Bind to port 22 on 0.0.0.0 failed: Address already in use. Jun 17 14:46:23 vadmin234 sshd: 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: