Bug 472

Summary: scp won't accept 'hash' character in usernames, ssh will
Product: Portable OpenSSH Reporter: Michael Pearce <chuzwuzza>
Component: scpAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: All   
OS: Linux   
Attachments:
Description Flags
Patch to allow 'hash' character in scp usernames none

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