Bug 2118 - ssh-copy-id hangs
Summary: ssh-copy-id hangs
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 6.2p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 21:06 AEST by karoshism
Modified: 2016-08-02 10:41 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description karoshism 2013-06-05 21:06:59 AEST
When running ssh-copy-id, it executes

REMOTE_VERSION=$(ssh -v -o PreferredAuthentications=',' "$@" 2>&1 |
                 sed -ne 's/.*remote software version //p')

Now this hangs for me, as it produces an endless loop like

# ssh -v -o PreferredAuthentications=',' root@machine
OpenSSH_6.2p1, OpenSSL 1.0.1e 11 Feb 2013
...
debug1: Authentications that can continue: publickey,password
debug1: No more authentication methods to try.
Permission denied (publickey,password).
OpenSSH_6.2p1, OpenSSL 1.0.1e 11 Feb 2013
...
debug1: Authentications that can continue: publickey,password
debug1: No more authentication methods to try.
Permission denied (publickey,password).
OpenSSH_6.2p1, OpenSSL 1.0.1e 11 Feb 2013
...
debug1: Authentications that can continue: publickey,password
debug1: No more authentication methods to try.
Permission denied (publickey,password).
...

etcetera until I interrupt it with CTRL-C.
Comment 1 Darren Tucker 2013-06-06 00:39:36 AEST
what ssh implementation is "machine" running?  ie what does 

ssh -v -o PreferredAuthentications=',' machine 2>&1 | grep "remote software version"

give?
Comment 2 karoshism 2013-06-06 02:37:38 AEST
(In reply to Darren Tucker from comment #1)
> what ssh implementation is "machine" running?  ie what does 
> 
> ssh -v -o PreferredAuthentications=',' machine 2>&1 | grep "remote
> software version"
> 
> give?

Ok, this was a PEBKAC. Sorry for the noise. "ssh" on this system is really an alias to a wrapper script that was not prepared to manage that.
Comment 3 Damien Miller 2016-08-02 10:41:34 AEST
Close all resolved bugs after 7.3p1 release