Page MenuHomePhabricator

libssh (here sftp) does not support ControlPath (like %h) defined in ssh config
Open, NormalPublic

Description

Dolphin which uses kio which uses libssh can't handle controlpaths from ssh config file like this:

Host **.exa
HostName %hmple.com

sftp://comp.exa << Failed to resolve %hmple.com

I have some really long domain names similar to
computer.subdomain.domain.topleveldomain and need to shorten it to
computer.sub.
The .sub-Part (only a part of the subdomain) are for indentification of a
RewriteRule(don't know if this term is correct), if multiple entrys are
present.

From ssh//config man-page:
[quote]
ControlPath

Specify the path to the control socket used for connection shar-
ing as described in the ControlMaster section above or the string
"none" to disable connection sharing.  In the path, '%h' will be
substituted by the target host name, '%p' the port and '%r' by
the remote login username.     It is recommended that any
ControlPath used for opportunistic connection sharing include all
three of these escape sequences.  This ensures that shared con-
nections are uniquely identified.

[/quote]

Reproducible: Always

Steps to Reproduce:
Put this in your ~/.ssh/config
Host **.exa
HostName %hmple.com

And then enter
sftp://comp.exa
in dolphins adressfield

Actual Results:
Failed to resolve %hmple.com

Expected Results:
Connect via sftp to comp.example.com

OS: Linux (x86//64) release 2.6.38-8-generic (Kubuntu 11.04)
Compiler: cc

Event Timeline

migration created this object with visibility "Restricted Project (Project)".
migration created this object with edit policy "Restricted Project (Project)".
asn reassigned this task from asn to aris.Aug 17 2017, 3:17 PM
asn changed the visibility from "Restricted Project (Project)" to "Public (No Login Required)".
asn added a subscriber: asn.