[Bug 2383] New: ssh-copy-id hangs when already connected with connection sharing
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Apr 16 00:58:23 AEST 2015
https://bugzilla.mindrot.org/show_bug.cgi?id=2383
Bug ID: 2383
Summary: ssh-copy-id hangs when already connected with
connection sharing
Product: Portable OpenSSH
Version: 6.8p1
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5
Component: ssh-copy-id
Assignee: unassigned-bugs at mindrot.org
Reporter: tobias.pal at gmail.com
Created attachment 2587
--> https://bugzilla.mindrot.org/attachment.cgi?id=2587&action=edit
ssh-copy-id-connection-sharing-hang.patch
If I successfully ssh into somewhere and then try to use ssh-copy-id,
it just hangs.
I have this in my .ssh/config:
ControlMaster auto
ControlPath /dev/shm/ssh_control_%h_%p_%r
ControlPersist 3600
It's because of this line in ssh-copy-id:
REMOTE_VERSION=$(ssh -v -o PreferredAuthentications=',' "$@" 2>&1 |
sed -ne 's/.*remote software version //p')
Because of the connection sharing, this doesn't fail, but opens a shell
on the other side and waits for input indefinitely.
A simple fix is to add -o ControlPath=none.
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list