In a shell I have no problems connecting to a sftp server. in Dolphin it times out. The host is configured in .ssh/config and uses an ssh-agent key. What could be the reason for dolphin to timeout?
This is a bit of a problem for Dolphin.
Check your config:
~/.ssh/config to keep the session alive:
Adding this may help:
Host *
ServerAliveInterval 60
ServerAliveCountMax 3
Opps I forgot to mention kio-extras is needed.
If the issue persists after resuming from sleep, ensure your system is not terminating the SSH agent.
Thanks. Actually if find something else with dolphin/kio-extras Sftp with dolphin - Help - KDE Discuss
It looks like kio is not reading the complete .ssh/config file. Mine is
Include /home/j/office.kingma.ch/ssh/kingma-config
Include /home/j/office.kingma.ch/ssh/github-config
Include /home/j/office.kingma.ch/ssh/sbw-config
Include /home/j/office.kingma.ch/ssh/kunden-config
the proper key is in the last one which seems not being read at all.
Ahh Ok, Thatâs very likely your root cause. Dolphinâs SFTP worker (kio_sftp) uses libssh, which does not fully support the Include directive in ~/.ssh/config. This is a known limitation â OpenSSH handles Include natively, but libsshâs config parser is incomplete.
I have a couple of guesses though, please see if this helps.
Duplicate the specific host entry directly into ~/.ssh/config (above or below the Include lines). Only the host you need for Dolphin:
Host kingma
HostName <actual-host>
User <user>
IdentityFile /path/to/key
Start there.
The fact that your Include paths are also outside ~/.ssh/ (in /home/j/office.kingma.ch/ssh/) makes it even more likely that libsshâs parser isnât resolving them correctly. OpenSSH handles absolute paths fine, but libssh may not.
If you need Dolphin SFTP to work with your full config setup, the cleanest fix is option 1 (fish://) â it gives you the same functionality with zero config changes.
what a shame. Knowing that the server ( my hoster) is ferociously blocking failed logon attempts with fail2ban where I have to wait one hour after a singled logon fail.
Is KDE kio doing something about this? Filed a bug https://bugs.kde.org/show_bug.cgi?id=528005 but if the kio team doesn´t care I do not have my hopes up.
Just a heads up Iâll be gone most of today, Duty callsâŚ(work)
Indeed moving the config from the forth include directly above the includes in the .ssh/config file allowed a normal, speedy connect.
This is, yet again, a major bug in KDE, dolphin or both.
fish://dwh.guerbet.ch
Could not connect to host dwh.guerbet.ch.
Iâm betting this is a permissions issue.
I can connect from shell sftp. so not entirly a permision issue. Or what is fish?
the paths are absolute in config.
Fish is a protocol that allows file transfers over ssh.
Thatâs a different âfishâ from the one used when transfering files using a fish:// URL.
Sorry I just got back from work, system back-ups.
I just saw fish and jumped the gunâŚLOL
Mea Cupa ![]()
Back on Track now ![]()
