You could also do:
ssh-copy-id -o ControlPath=none username@hostname
without killing the existing SSH connection.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1342412
Title:
ssh-copy-id hangs whe
** Description changed:
+ [Workaround]
+
+ ssh -O exit hostname # this will kill all ssh connection to that host
+ ssh-copy-id username@hostname # now it works because it's the first connection
+ # continue using ssh as normal.
+
+ Thanks to Ruben Laguna (ecerulm) in comment 7.
+
+ [Original De
For reference to those that land here looking for a quick solution.
ssh -O exit hostname # this will kill all ssh connection to that host
ssh-copy-id username@hostname # now it works because it's the first connection
# continue using ssh as normal.
--
You received this bug notification because
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: openssh (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1342412
Title:
ss
The version in saucy works perfectly:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/openssh/saucy/view/head:/contrib/ssh-copy-id
It seems that the current is a huge rewrite ...
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu
The problem is that when connecting using a control socket, it's not
printed the line like:
debug1: Remote protocol version 2.0, remote software version
OpenSSH_5.3
So the variable REMOTE_VERSION is not set.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which i
It would be nice to use control socket, because in this way, you don't
have to enter password again to copy the ssh-key if you have an already
connected session.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.ne
Thank you for taking the time to report this bug and helping to make
Ubuntu better.
I can see why it would hang on the line you've said - I presume the
client will never see "remote software version" in this case.
I wonder if a fix would be to have line add "-Snone" to the ssh call, so
that no co