Bug 1669 - ssh-copy-id has options that could be added to MAN page
Summary: ssh-copy-id has options that could be added to MAN page
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 5.3p1
Hardware: Other Other
: P2 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: 1980 V_6_3
  Show dependency treegraph
 
Reported: 2009-11-01 12:02 AEDT by Tom
Modified: 2013-03-22 12:02 AEDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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