does ssh-copy-id not use "id_rsa.pub" file by default?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



  yesterday, i was demoing how to use ssh-copy-id on centos 5.5 to
copy one's public key to another machine and account so you don't need
to type the password anymore.  i used "ssh-keygen" to create the
standard RSA-format files, then checked the man page for ssh-copy-id,
which reads:

  ssh-copy-id [-i [identity_file]] [user@]machine
  ...
  If  the  -i  option  is  given   then   the   identity   file
  (defaults   to  ~/.ssh/id_rsa.pub)  is  used

the above seems to suggest that, as long as i'm happy copying over the
default id_rsa.pub file, all i need type is:

  $ ssh-copy-id -i barney@xxxxxxxxxxxx
  /usr/bin/ssh-copy-id: ERROR: No identities found
  $

  clearly, that doesn't work.  but if i simply add in the name of the
file, it's fine:

  $ ssh-copy-id -i .ssh/id_rsa.pub barney@xxxxxxxxxxxx
                   ^^^^^^^^^^^^^^^
any reason for that?  the man page clearly states that that file is
the default, but it's obvious i still need to type its name.  am i
missing something?  is the man page wrong?

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux