scp reject remote users with space in username

Christophe LYON christophe.lyon at
Tue Apr 6 23:47:57 EST 2010


After some googling, I have found
and applied the mentioned patch, which solves my problem.

But given the fact that the patch dates from 2006, I am wondering why it 
hasn't been applied to the main official sources. Is there a problem 
with it?


On 31.03.2010 14:05, Christophe LYON wrote:
> Hello,
> I have noticed that since release 5.x of openssh, the scp command
> rejects remote user names with white spaces. (We have such user names on
> Windows hosts)
> For instance:
> $ scp myfile "my user"@machine:.
> used to work with openssh-4.2p1 and fails with 5.2p1 and 5.3p1:
> my user: invalid user name.
> I have traced this down to revision 1.129 of scp.c which now calls
> okname().
> OTOH, ssh "my user"@machine works.
> Is this a bug, or a feature, and if so is there a workaround?
> Thanks.
> Christophe.

More information about the openssh-unix-dev mailing list