Bug 2488 - "ssh-copy-id -o ControlPath=/tmp/foo" hangs
Summary: "ssh-copy-id -o ControlPath=/tmp/foo" hangs
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-copy-id (show other bugs)
Version: 7.1p1
Hardware: All All
: P5 minor
Assignee: Philip Hands
URL:
Keywords:
: 2886 (view as bug list)
Depends on:
Blocks: V_7_2
  Show dependency treegraph
 
Reported: 2015-11-02 22:15 AEDT by Salvador Fandiño
Modified: 2020-09-17 06:41 AEST (History)
2 users (show)

See Also:


Attachments
the patch (2.22 KB, patch)
2015-11-02 22:15 AEDT, Salvador Fandiño
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Salvador Fandiño 2015-11-02 22:15:16 AEDT
Created attachment 2745 [details]
the patch

The following command hangs:

  ssh-copy-id -o ControlPath=/tmp/foo hostname

This is related to ssh-copy-id expecting connections to fail but actually succeeding because of the given ControlPath setting.

See the patch attached for the details.
Comment 1 Philip Hands 2015-11-29 06:41:24 AEDT
Thanks for the patch.  As you can see here:

  http://git.hands.com/?p=ssh-copy-id.git;a=commit;h=e129c91dc474d73671304403fafda785df440105

I've applied it to my repo, which will hopefully make it into OpenSSH fairly soon.

Cheers, Phil.
Comment 2 Damien Miller 2018-04-06 12:26:44 AEST
Close all resolved bugs after release of OpenSSH 7.7.
Comment 3 Philip Hands 2020-09-17 06:41:47 AEST
*** Bug 2886 has been marked as a duplicate of this bug. ***