If ControlPath is specified and ControlMaster is set to auto, ssh-copy-id will hang permanently when trying to connect to a host for which there is already an open connection.
Please see https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1342412 There is a fix (a new version of ssh-copy-id) in Ubuntu for this. https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/openssh/saucy/view/head:/contrib/ssh-copy-id Is it possible to fix this annoying (entering your password twice) behavior?
If it is not possible to use the Ubuntu version, a quick fix would be if [ -d ~/.ssh/sockets ] ; then REMOTE_VERSION="generic" else REMOTE_VERSION=$(ssh -v -o PreferredAuthentications=',' "$@" 2>&1 | sed -ne 's/.*remote software version //p') fi
*** Bug 2383 has been marked as a duplicate of this bug. ***
This bug applied to the old version of the script, but the new version had the same fault, which has now been fixed in my git repo: http://git.hands.com/?p=ssh-copy-id.git;a=commitdiff;h=e129c91dc474d73671304403fafda785df440105;hp=35f05e39cda8670b3f6797330a3e521fda509a4c Perhaps you could have a look at the latest version here: http://git.hands.com/sh-copy-id and check that it works for you. Cheers, Phil.
Close all resolved bugs after 7.3p1 release