Bug 390450

Summary: sftp connect don't read ~/.ssh/config correctly
Product: [Frameworks and Libraries] kio-extras Reporter: Jiri Prchal <jiri.prchal>
Component: SFTPAssignee: Andreas Schneider <asn>
Status: RESOLVED UPSTREAM    
Severity: normal CC: miso, nikita+kde
Priority: NOR    
Version: 22.08.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jiri Prchal 2018-02-14 13:12:23 UTC
Hi,
I've got this config:

Host server
	Hostname x.y.z.101
	Port 22
	User user
	IdentityFile ~/.ssh/ecdsa

Host *
	Port 4322
	Compression yes
	User user
	ServerAliveInterval 15
	IdentityFile ~/.ssh/rsa
	HashKnownHosts no

Command "ssh server" works well, connects to ip and correct port = 22.
Krusader's new net connection to sftp "server" picks ip, but not port and after while returns timeout. By tcpdump, it tries to "default" port 4322.
Comment 1 Nikita Melnichenko 2018-02-15 05:05:21 UTC
Thanks for your report. We no longer support v2.4 (https://groups.google.com/forum/#!topic/krusader-devel/SPHtVgQnNAE). Please try with the latest stable v2.6 or Git version if possible.
Comment 2 Jiri Prchal 2018-02-15 12:31:31 UTC
Tried in fresh install of Ubuntu 17.10, Krusader 2.6.0, kio-extras 17.04.3 but it doesn't read config at all.

On 15.2.2018 06:05, Nikita Melnichenko wrote:
> https://bugs.kde.org/show_bug.cgi?id=390450
> 
> Nikita Melnichenko <nikita+kde@melnichenko.name> changed:
> 
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |nikita+kde@melnichenko.name
>           Resolution|---                         |UNMAINTAINED
>               Status|UNCONFIRMED                 |NEEDSINFO
> 
> --- Comment #1 from Nikita Melnichenko <nikita+kde@melnichenko.name> ---
> Thanks for your report. We no longer support v2.4
> (https://groups.google.com/forum/#!topic/krusader-devel/SPHtVgQnNAE). Please
> try with the latest stable v2.6 or Git version if possible.
>
Comment 3 Nikita Melnichenko 2018-02-16 04:35:11 UTC
Krusader doesn't implement sftp protocol but uses KIO. This is a KIO bug, likely it's a duplicate of bugs #338432, #230530. I'll reassign.
Comment 4 Andreas Schneider 2018-02-16 12:50:57 UTC
Could you please open a bug at https://bugs.libssh.org/
Comment 5 Andreas Schneider 2018-08-24 06:06:42 UTC
This has been fixed with libssh-0.8.1.
Comment 6 Michal Hlavac 2022-08-30 06:44:40 UTC
Does not work for me. If I have ~/.ssh/config

Host server1
  HostName 192.168.1.10
  User root
  IdentityFile ~/.ssh/id_rsa
  IdentitiesOnly yes

when I wrote to dolphin: sftp://server1, it says: Failed to resolve hostname server1 (Name or service not known)