Is sshd not accessible at all over ipv4? How did you notice that sshd
was not listening on ipv4?

In the default case, we should end up with ssh.socket listening on
[::]:22, but with IPV6_V6ONLY=0 so that sshd is still accessible over
ipv4.

> Setting net.ipv6.bindv6only=0 also helps, but that's not a solution.

I think this is the default on Ubuntu, no?

If your system does have net.ipv6.bindv6only=1, and you don't want to
change it, a workaround for now should be to do:

$ mkdir -p /etc/systemd/systemd/ssh.socket.d/
$ cat > /etc/systemd/system/ssh.socket.d/bindipv6only-both.conf << EOF
[Socket]
BindIPv6Only=both
EOF

which has the effect of setting IPV6_V6ONLY to 0 for this particular
socket.

We should probably fix sshd-socket-generator to automatically do this in
certain cases.

** Changed in: openssh (Ubuntu)
   Importance: Undecided => Medium

** Changed in: openssh (Ubuntu)
       Status: New => Incomplete

** Changed in: openssh (Ubuntu)
       Status: Incomplete => Confirmed

** Tags added: rls-nn-incoming

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080216

Title:
  sshd cannot bind to IPv4 interfaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2080216/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to