Skip to content
Commit f1b599da authored by Ondrej Holy's avatar Ondrej Holy
Browse files

sftp: Adapt on new OpenSSH password prompts

SFTP backend fails when connecting with the "Timed out when logging in"
error with the recent OpenSSH versions. This is because their password
prompts are now prefixed by the `(user@host)` string, which breaks our
`g_str_has_prefix` checks. Let's use `strstr` instead to fix this issue
and also to not break compatibility with old versions and other vendors.

Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/584


(cherry picked from commit 15bf21e5)
parent 097a3abf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment