Bug 435796

Summary: Adding sftp network location using ssh alias doesn't work if alias is in non-default file
Product: [Frameworks and Libraries] frameworks-kio Reporter: vytas <vytas.naus>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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