[Bug 3526] New: Config option AddressFamily has no effect?

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jan 21 09:46:59 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3526

            Bug ID: 3526
           Summary: Config option AddressFamily has no effect?
           Product: Portable OpenSSH
           Version: 9.0p1
          Hardware: amd64
                OS: Mac OS X
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: nix-muell at gmx.net

Using both OpenSSH_7.9p1 or OpenSSH_9.0p1 installed via Homebrew on
MacOS X 10.14 (Mojave)

I'm trying to connect to a host that has A and AAAA DNS records, where
the AAAA is wrong (not under my control).
When connecting, IPv6 is tried, then after a timeout is reached, IP4
connects just fine. Using the `ssh -4 host` argument, the connection
uses v4 right away, as expected.

So, being lazy, I decided to set `AddressFamily inet` in my
.ssh/config. To my surprise, this has no effect. SSH tries a v6
connection, then falls back to v4, as if the option were not set. It
is, though.
Verifying with `ssh -G host`, i get the expected `addressfamily inet`
line. The output is no bit different than the one i get from `ssh -4 -G
host`

Am I expecting or doing something wrong? Hesitating to file a bug,
stumbled upon unexpected but technically not wrong behaviour a few
times lately.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list