Bug 460152

Summary: Dolphin (fish) ignores ~/.ssh/config
Product: [Applications] dolphin Reporter: federico
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 22.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description federico 2022-10-09 10:16:38 UTC
SUMMARY

When using fish in dolphin, the username and IdentityFile from ~/.ssh/config are ignored


STEPS TO REPRODUCE
1. create a ~/.ssh/config that defines a host, with an username and key, for example
----
Host machine1
        HostName 127.0.0.1
        Port 2222
        User admin
        IdentityFile ~/.ssh/id_rsa_backup
        IdentitiesOnly yes
----
2. Connect to the machine via ssh, and ensure that the IdentityFile is used "ssh -v machine1"
3. Enter "fish://machine1/" as location in dolphin

OBSERVED RESULT

Dolphin opens a SSH authentication dialog which ask me for username (the default username matches $USER, and not the value in ~/.ssh/config) and for a password.
Both of them should not be necessary.


EXPECTED RESULT

Dolphin should not ask for username but read it from ~/.ssh/config if avaiable, and not ask for a password but use IdentityFile if available and connect directly

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
Comment 1 federico 2022-10-09 10:25:57 UTC
Additional comment:
It doe not seem possible to use dolphin if login with password is disabled, as it is not possible to configure manually which ssh key to use.