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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs