[Bug 3066] New: ConnectTimeout ignored for second IP address for host?

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Sep 6 00:02:52 AEST 2019


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

            Bug ID: 3066
           Summary: ConnectTimeout ignored for second IP address for host?
           Product: Portable OpenSSH
           Version: 7.9p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: jik at kamens.us

If I do `ssh -v -o ConnectTimeout=1 -o StrictHostKeyChecking=no` to a
host which has two addresses, one IPv4 and one IPv6, then it appears
that the `ConnectTimout=1` setting is only obeyed for the first
connection attempt:

```
$ ssh -v -o ConnectTimeout=1 -o StrictHostKeyChecking=no
elided.host.name true 2>&1 | while read line; do echo "$(date) $line";
done
Thu 05 Sep 2019 09:57:52 AM EDT OpenSSH_7.9p1 Ubuntu-10, OpenSSL 1.1.1b
 26 Feb 2019
Thu 05 Sep 2019 09:57:52 AM EDT debug1: Reading configuration data
home/elided-username/.ssh/config
Thu 05 Sep 2019 09:57:52 AM EDT debug1:
home/elided-username/.ssh/config line 13: Applying options for *
Thu 05 Sep 2019 09:57:52 AM EDT debug1: Reading configuration data
/etc/ssh/ssh_config
Thu 05 Sep 2019 09:57:52 AM EDT debug1: /etc/ssh/ssh_config line 19:
Applying options for *
Thu 05 Sep 2019 09:57:52 AM EDT debug1: Connecting to elided.host.name
[elided:ipv6:address] port 22.
Thu 05 Sep 2019 09:57:53 AM EDT debug1: connect to address
elided:ipv6:address port 22: Connection timed out
Thu 05 Sep 2019 09:57:53 AM EDT debug1: Connecting to elided.host.name
[elided.ipv4.address] port 22.
Thu 05 Sep 2019 10:00:04 AM EDT debug1: connect to address
elided.ipv4.address port 22: Connection timed out
Thu 05 Sep 2019 10:00:04 AM EDT ssh: connect to host elided.host.name
port 22: Connection timed out
```

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


More information about the openssh-bugs mailing list