Bug 2488

Summary: "ssh-copy-id -o ControlPath=/tmp/foo" hangs
Product: Portable OpenSSH Reporter: Salvador Fandiño <sfandino>
Component: ssh-copy-idAssignee: Philip Hands <phil>
Status: CLOSED FIXED    
Severity: minor CC: ahmet.mercan, phil
Priority: P5    
Version: 7.1p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 2451    
Attachments:
Description Flags
the patch none

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. ***