Bug 410755 - KIO SFTP to non-default port doesn't work
Summary: KIO SFTP to non-default port doesn't work
Status: RESOLVED FIXED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (show other bugs)
Version: 19.04.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-09 09:05 UTC by Jan Przybylak
Modified: 2020-03-05 12:20 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 Jan Przybylak 2019-08-09 09:05:46 UTC
SUMMARY
I'm trying to use Dolphin to connect to an SFTP server on port 213. Connecting to the SFTP server listening on port 212 on the same hostname works fine, but when trying to connect to port 213, the requests still go to 212 (Which I can confirm by looking at the server logs).
This setup works on other SFTP clients, and normally logging in using SSH works fine too.
I checked the logs using KSystemLog, where kiod5 reports that it connects to the correct port 213 (which it obviously doesn't)
212 is the default port specified in both ssh_config and sshd_config.

I tried connecting to another server that uses port 22, this didn't work either.

STEPS TO REPRODUCE
Try to use Dolphin to connect to an SFTP server that uses a different port than specified in ssh_config and sshd_config 

OBSERVED RESULT
Authentication failure because it tries to connect to the wrong server

EXPECTED RESULT
KIO accesses my SFTP share
Comment 1 Jan Przybylak 2019-08-09 09:14:32 UTC
Something to add:
In the case of the server that only listens on port 22, Dolphin even says "Connection refused". I assume it tries to connect to port 212, which is blocked on the second machine.
Comment 2 Harald Sitter 2020-03-04 14:07:17 UTC
Please provide a step by step guide on how to reproduce this.
Comment 3 Jan Przybylak 2020-03-05 12:20:12 UTC
I tried again and it seems to work now, I was not able to reproduce it anymore. I can properly connect to all of my SFTP servers.