Bug#755983: openssh-client: Erroneous message using ssh-copy-id when you have PubkeyAuthentication = yes
Package: openssh-client
Version: 1:6.6p1-6
Severity: minor
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 !
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages openssh-client depends on:
ii adduser 3.113+nmu3
ii dpkg 1.17.10
ii libc6 2.19-4
ii libedit2 3.1-20140213-1
ii libgssapi-krb5-2 1.12.1+dfsg-3
ii libselinux1 2.3-1
ii libssl1.0.0 1.0.1h-3
ii passwd 1:4.2-2
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages openssh-client recommends:
ii xauth 1:1.0.7-1
Versions of packages openssh-client suggests:
ii keychain 2.7.1-1
ii libpam-ssh 2.01-1
pn monkeysphere <none>
ii ssh-askpass-fullscreen [ssh-askpass] 0.3-3.1
-- Configuration Files:
/etc/ssh/ssh_config changed [not included]
-- no debconf information
Reply to: