Bug 472 - scp won't accept 'hash' character in usernames, ssh will
Summary: scp won't accept 'hash' character in usernames, ssh will
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: -current
Hardware: All Linux
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-23 17:14 AEDT by Michael Pearce
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
Patch to allow 'hash' character in scp usernames (379 bytes, patch)
2003-01-23 17:15 AEDT, Michael Pearce
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Pearce 2003-01-23 17:14:21 AEDT
I have a web server with which the only method of uploading my files to is scp.
It uses a system called Ensim, which creates virtual unix accounts (or
somethign) so my username which I ssh and scp with ends up being
username#domainname.com
ssh lets me log in fine with this name, and other windows scp clients let me use
it as well. The unix scp openssh client unfortunately does not.

I would attach a (one-liner) patch I have to fix this, but I can't see anywhere
to attach it...
Anyway, it just involves changing the if statement on line 1016 of scp.c to add 
&& c != '#'
to it.
Comment 1 Michael Pearce 2003-01-23 17:15:21 AEDT
Created attachment 207 [details]
Patch to allow 'hash' character in scp usernames
Comment 2 Markus Friedl 2003-02-02 21:51:47 AEDT
fixed for non remote-remote copies
Comment 3 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED