Bug 447 - Invalid parsing for user@hostname in scp.c and ssh.c
Summary: Invalid parsing for user@hostname in scp.c and ssh.c
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: -current
Hardware: All All
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-27 09:51 AEDT by Stephane
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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