Troubleshooting a dolphin sftp problem

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 :slight_smile:

Back on Track now :sweat_smile: