ssh-copy-id fails with certain args

Bug #494497 reported by Daniel A.
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

ssh-copy-id fails to parse command line arguements in certain situations. In this case I tried to specify my user name using ssh's -l arguement.

dak@dak-tp:~$ ssh-copy-id -ltest host.name
ssh: Could not resolve hostname umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys: Name or service not known

ProblemType: Bug
Architecture: amd64
Date: Wed Dec 9 14:12:48 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: fglrx
Package: openssh-client 1:5.1p1-6ubuntu2
ProcEnviron:
 LANGUAGE=en_GB.UTF-8
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.52-generic
SourcePackage: openssh
Uname: Linux 2.6.31-16-generic x86_64

Revision history for this message
Daniel A. (alive-dienub) wrote :
Chuck Short (zulcss)
Changed in openssh (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 494497] [NEW] ssh-copy-id fails with certain args

On Wed, Dec 09, 2009 at 01:19:28PM -0000, Daniel A. wrote:
>
> ssh-copy-id fails to parse command line arguements in certain
> situations. In this case I tried to specify my user name using ssh's -l
> arguement.
>
> dak@dak-tp:~$ ssh-copy-id -ltest host.name
> ssh: Could not resolve hostname umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys: Name or service not known
>

ssh-copy-id doesn't support the -l option:

$ ssh-copy-id --help
Usage: /usr/bin/ssh-copy-id [-i [identity_file]] [user@]machine

 status invalid
 importance wishlist

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Changed in openssh (Ubuntu):
importance: Low → Wishlist
status: Confirmed → Invalid
Revision history for this message
Daniel A. (alive-dienub) wrote :

Hi,
Adding this to wishlist is pointless.
The bug is not invalid. It is a bug.

It would make sense to get rid of the bug first and putting in a nice error message instead. Then it would make sense to choose between supporting openssh-client flags entirely, or not at all.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.