| Summary: | ssh-copy-id hangs when using shared connection | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | catern |
| Component: | ssh-copy-id | Assignee: | Philip Hands <phil> |
| Status: | CLOSED FIXED | ||
| Severity: | enhancement | CC: | phil, tobias.pal, versalismeisteralis |
| Priority: | P5 | ||
| Version: | 6.7p1 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Bug Depends on: | |||
| Bug Blocks: | 2451 | ||
|
Description
catern
2014-01-08 13:47:41 AEDT
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 |