[Bug 2068] New: ssh-copy-id cannot handle spaces in usernames

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Feb 4 03:27:54 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=2068

            Bug ID: 2068
           Summary: ssh-copy-id cannot handle spaces in usernames
    Classification: Unclassified
           Product: Portable OpenSSH
           Version: 5.9p1
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: ssh-add
          Assignee: unassigned-bugs at mindrot.org
          Reporter: kennybobs at o2.co.uk

If a username has a space in it, ssh-copy-id cannot handle it, unless
it's in a non-obvious way. ssh itself has no problem with spaces.

$ ssh-copy-id "User name"@server
ssh: Could not resolve hostname User: Name or service not known
$ ssh-copy-id "User\ name"@server
ssh: Could not resolve hostname User\\: Name or service not known
$ ssh-copy-id User\ name at server
ssh: Could not resolve hostname User: Name or service not known

From
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1074798/comments/2
"It looks like there is some quoting missing from the ssh-copy-id
script"

Possibly related:
https://bugzilla.mindrot.org/show_bug.cgi?id=1164
https://bugzilla.mindrot.org/show_bug.cgi?id=1980

Apologies if this is logged against the incorrect component.
ssh-copy-id seems to call ssh-add but it's more than likely a problem
with the script rather than ssh-add.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list