[PATCH] contrib/ssh-copy-id: do not use shared connection

Konstantin Khlebnikov koct9i at gmail.com
Sun Jun 8 20:11:50 EST 2014


ssh-copy-id always needs new connection to the server when it
evaluates its version and tests if the key is already installed.
Before this patch ssh-copy-id might reuse existing shared connection
and hang in REMOTE_VERSION=(...) because it get interactive connection
which never ends. Also it will think that the key is already there
because connection using it is succeed.

This patch adds option "ControlPath=none" into command line and remote
command "exit" to be sure that test connection never hangs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ssh-copy-id-disable-shared-connection.patch
Type: text/x-patch
Size: 1055 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20140608/c0273082/attachment.bin>


More information about the openssh-unix-dev mailing list