Bug 1669

Summary: ssh-copy-id has options that could be added to MAN page
Product: Portable OpenSSH Reporter: Tom <tom>
Component: DocumentationAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: djm, dtucker
Priority: P2    
Version: 5.3p1   
Hardware: Other   
OS: Other   
Bug Depends on:    
Bug Blocks: 1980, 2076    

Description Tom 2009-11-01 12:02:59 AEDT
After googling about using ssh-copy-id on a server running on a nonstandard port, I learned that I could use

 $ ssh-copy-id '-p 1234 name@server' 

to pass the port option through to ssh.  This ability is not documented on the man page, and I thought it was a normal use case and worth putting in the documentation.
Comment 1 Darren Tucker 2009-11-02 09:16:22 AEDT
I'm not sure if that's a feature or an accident of the implementation.  The only reason it works is that $1 is not quoted in this line:

{ eval "$GET_ID" ; } | ssh $1 [...]

I would have expected the canonical way to do this would be to put a port directive into your ~/.ssh/config, eg

Host server
  Port 1234
Comment 2 Damien Miller 2013-03-08 10:24:02 AEDT
retarget to openssh-6.3
Comment 3 Damien Miller 2013-03-22 10:18:12 AEDT
Updated script/manpage committed for openssh-6.2
Comment 4 Damien Miller 2013-03-22 12:02:14 AEDT
mark bugs closed by openssh-6.2 release as CLOSED