Bug 488622 - SFTP wildcards in ~/.ssh/config ignored
Summary: SFTP wildcards in ~/.ssh/config ignored
Status: REPORTED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (show other bugs)
Version: 24.05.0
Platform: NixOS Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-17 15:27 UTC by kyle
Modified: 2024-10-25 16:24 UTC (History)
3 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 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.