Bug 488622

Summary: SFTP wildcards in ~/.ssh/config ignored
Product: [Frameworks and Libraries] kio-extras Reporter: kyle
Component: SFTPAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: minor CC: kde, kfm-devel, kyle
Priority: NOR    
Version: 24.05.0   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kyle 2024-06-17 15:27:23 UTC
SUMMARY:
When using an ssh config like so:
```
host *user
  IdentityFile ~/.ssh/user.id_rsa

host dev-webserver-user
  hostname 10.0.0.4
```
dolphin doesn't parse the identity file

STEPS TO REPRODUCE:
1. Configure ssh config to use wildcard expansion
2. open sftp://host-webserver-user (ssh config alias)

OBSERVED RESULT:
dolphin will ask for username and password if it's enabled and will not use the id file

EXPECTED RESULT:
the id file in the wildcard declaration should be used for auth

SOFTWARE/OS VERSIONS:
Linux/KDE Plasma: NixOS 24.11.20240524.bfb7a88 (Vicuña) x86_64 / plasmashell 5.27.11
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION:
I normally run dolphin 23.08.5 but I manually ran 24.05.0 in a nix shell to confirm this affected latest.
I found this reddit thread: https://www.reddit.com/r/kde/comments/jy7ms3/dolphin_sftp_does_not_work_if_ssh_hosts_config/
But not bug report seemed to be made, or I couldn't find it after 5 minutes of searching.