scp file "FirstName LastName"@domain.com: produces "invalid user name" but ssh "FirstName LastName"@domain.com works. I've seen this error with openssh 3.5p1, with Irix scp v3.4 and on Solaris scp v3.0.2p1. The presence of a space is sufficient to produce the "invalid user name" diagnostic. Sorry but PC users often have user names of this form and probably a few Mac users, too. scp.c contains function okname that issues the "invalid user name" but since it really doesn't check with the remote host, scp doesn't really know whether the name is OK anyway. Unless there's some other reason for doing this check, I recommend just doing away with this function.
fixed for non remote-remote copies.
Mass change of RESOLVED bugs to CLOSED