[Bug 2999] Sftp login failed by sftp user@[ip] in openssh 7.9

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Mon Apr 29 08:00:15 AEST 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=2999

--- Comment #8 from Darren Tucker <dtucker at dtucker.net> ---
I think I see what happened. sftp's command line parsing does this:

if (parse_user_host_path(*argv, &user, &host,
    &file1) == -1) {
        /* Treat as a plain hostname. */
        host = xstrdup(*argv);
        host = cleanhostname(host);
}

cleanhostname() removes the square brackets by looking at the first and
last characters, but in your example it'll get the username too and so
do nothing.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list