Konstantin Khlebnikov
2014-Jun-08 10:11 UTC
[PATCH] contrib/ssh-copy-id: do not use shared connection
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>
Seemingly Similar Threads
- [Bug 2383] New: ssh-copy-id hangs when already connected with connection sharing
- [Bug 2195] New: ssh-copy-id hangs when using shared connection
- [Bug 2488] New: "ssh-copy-id -o ControlPath=/tmp/foo" hangs
- [Bug 2118] New: ssh-copy-id hangs
- [Bug 2886] New: ssh-copy-id appears to hang indefinitely when ssh multiplexing is enabled, and it permits passwordless login