Bug 460152 - Dolphin (fish) ignores ~/.ssh/config
Summary: Dolphin (fish) ignores ~/.ssh/config
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.08.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-09 10:16 UTC by federico
Modified: 2022-10-09 10:25 UTC (History)
1 user (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 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.