Bug 435796 - Adding sftp network location using ssh alias doesn't work if alias is in non-default file
Summary: Adding sftp network location using ssh alias doesn't work if alias is in non-...
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-16 06:03 UTC by vytas
Modified: 2021-04-16 18:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vytas 2021-04-16 06:03:47 UTC
SUMMARY
when adding a sftp network location using "add network folder" functionality, hostname cannot be if alias isn't in the default ~/.ssh/config. In my case, instead of defining host there, there is an Include directive, which points to another file.
If instead it's defined in ~/.ssh/config, it works as expected.


STEPS TO REPRODUCE
1. add "Include foo" in ~/.ssh/config
2. modify ~/.ssh/foo to have the following:
Host foo
 Hostname 192.168.122.2
 User root
3. try to add network location in dolphin.

OBSERVED RESULT
Failed to resolve hostname foo (Name or service not known).

EXPECTED RESULT
Should be added successfully, as is if everything is defined in ~/.ssh/config