#755983 openssh-client: Erroneous message using ssh-copy-id when you have PubkeyAuthentication = yes

Package:
openssh-client
Source:
openssh
Description:
secure shell (SSH) client, for secure access to remote machines
Submitter:
Javier Barroso
Date:
2014-07-25 05:36:06 UTC
Severity:
minor
#755983#5
Date:
2014-07-25 05:33:38 UTC
From:
To:
Dear Maintainer,

If you have .ssh/config configured to use PubkeyAuthentication by
default and you have PasswordAuthentication set to "no",
 see next ssh-copy-id output:

$ ssh-copy-id -i ~/.ssh/id_rsa -o PasswordAuthentication=yes -o \
BatchMode=no -o PubkeyAuthentication=no  javi@192.168.10.58
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to
filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you
are prompted now it is to install the new keys
javi@192.168.10.58's password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh -o \
'PasswordAuthentication=yes' -o 'BatchMode=no' -o \
'PubkeyAuthentication=no' 'javi@192.168.10.58'"
and check to make sure that only the key(s) you wanted were added.

I think that at least "PasswordAuthentication" option should not be
showed in the last message (where says "Now try logging ...")

If ssh-copy-id have done its work fine, yo will not need that option
anymore.

Please note, that if you can use ssh-copy-id, it will be obvious that
you have to remove that option, but I prefer to report (maybe this is
easy to fix)

Thank you !