Bug 1828

Summary: ssh-copy-id fails when there is a whitespace in the identity file
Product: Portable OpenSSH Reporter: Gwenael Lambrouin <gwenael.lambrouin>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: minor CC: djm, gwenael.lambrouin
Priority: P2    
Version: 5.6p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1845    
Attachments:
Description Flags
patchfile which fixes ssh-copy-id problem with identity files containing whitespaces dtucker: ok+

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