Bug 447

Summary: Invalid parsing for user@hostname in scp.c and ssh.c
Product: Portable OpenSSH Reporter: Stephane <stephane_bailliez>
Component: MiscellaneousAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: All   
OS: All   

Description Stephane 2002-11-27 09:51:17 AEDT
I just changed my hosting provider that gives user@domain as ssh login to the 
domain.. so a scp command line gives:

scp file.tocopy user@domain@domain:

It fails to connect. I checked the source code and it uses strchr rather than 
strrchr to get the hostname and user.. thus it will end up with user 'user' 
and domain 'domain@domain'...which is unlikely to succeed.

This bug exists at least in scp.c and ssh.c

Workaround for ssh is to use ssh -l user@domain domain and for scp is to use 
another client. I use pscp on windows.
Comment 1 Damien Miller 2003-01-03 14:49:40 AEDT
Markus fixed this in November
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED