bugzilla-daemon at bugzilla.mindrot.org
2019-Sep-05 14:02 UTC
[Bug 3066] New: ConnectTimeout ignored for second IP address for host?
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.
bugzilla-daemon at bugzilla.mindrot.org
2019-Sep-06 02:51 UTC
[Bug 3066] ConnectTimeout ignored for second IP address for host?
https://bugzilla.mindrot.org/show_bug.cgi?id=3066
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |djm at mindrot.org
Resolution|--- |DUPLICATE
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
*** This bug has been marked as a duplicate of bug 2918 ***
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2021-Apr-23 05:08 UTC
[Bug 3066] ConnectTimeout ignored for second IP address for host?
https://bugzilla.mindrot.org/show_bug.cgi?id=3066
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #2 from Damien Miller <djm at mindrot.org> ---
closing resolved bugs as of 8.6p1 release
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.