Bug 1828 - ssh-copy-id fails when there is a whitespace in the identity file
Summary: ssh-copy-id fails when there is a whitespace in the identity file
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 5.6p1
Hardware: All All
: P2 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_5_9
  Show dependency treegraph
 
Reported: 2010-10-14 03:09 AEDT by Gwenael Lambrouin
Modified: 2011-09-06 15:32 AEST (History)
2 users (show)

See Also:


Attachments
patchfile which fixes ssh-copy-id problem with identity files containing whitespaces (289 bytes, patch)
2010-10-14 03:09 AEDT, Gwenael Lambrouin
dtucker: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gwenael Lambrouin 2010-10-14 03:09:28 AEDT
Created attachment 1935 [details]
patchfile which fixes ssh-copy-id problem with identity files containing whitespaces

Under Cygwin, my home directory is "/cygdrive/c/Documents and Settings/me". When I type:

ssh-copy-id -i ~/.ssh/id_dsa.pub somehost

I get:

cat: /cygdrive/c/Documents: Is a directory
cat: and: No such file or directory
cat: Settings/me/.ssh/id_dsa.pub: No such file or directory
/usr/bin/ssh-copy-id: ERROR: No identities found

Attached is a patch which fixes this issue.
Comment 1 Damien Miller 2011-08-12 11:25:46 AEST
Patch applied, will be in OpenSSH 5.9p1. Thanks!
Comment 2 Damien Miller 2011-09-06 15:32:51 AEST
close resolved bugs now that openssh-5.9 has been released