Bug 376867 - sftp connect issue "Failed to resolve hostname = (Name or service not known)"
Summary: sftp connect issue "Failed to resolve hostname = (Name or service not known)"
Status: RESOLVED WORKSFORME
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-24 00:55 UTC by Vadim
Modified: 2020-04-04 04:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Package changes on 2017/07/09. (19.18 KB, text/plain)
2017-07-15 19:32 UTC, Chris Wells
Details
Package changes on 2017/07/15. (1.09 KB, text/plain)
2017-07-15 19:32 UTC, Chris Wells
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim 2017-02-24 00:55:20 UTC
cat /etc/issue
Ubuntu 16.04.2 LTS \n \l
uname -r
4.9.0-040900-generic
konsole --version
QCoreApplication::arguments: Please instantiate the QApplication object first
Qt: 5.5.1
KDE Frameworks: 5.18.0
Konsole: 15.12.3

krusader --version
Qt: 4.8.7
KDE Development Platform: 4.14.16
Krusader - ROOT PRIVILEGES: 2.4.0-beta3 "Single Step"

dolphin --version
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
dolphin 15.12.3

My ~/.ssh/config
ControlPath ~/.ssh/tmp/%h_%p_%r
Host *
  ServerAliveInterval 240
  KeepAlive = yes
Host = www.mydomain.science 1.2.3.4
 HostName = 1.2.3.4
  User =myname
  KeepAlive =yes
  Port =???? (4 symbols number)
  IdentityFile = ~/.ssh/mykey.priv.key

I could ping www.mydomain.science .
I could ssh by command: ssh www.mydomain.science without any issues.
I could not open sftp ether from krusader or dolphin.
Connection string: sftp://myname@www.mydomain.science:9999
Error message:
Failed to resolve hostname = (Name or service not known)
Comment 1 Chris Wells 2017-07-15 19:30:03 UTC
I'm seeing the same issue on FreeBSD.  The error in Krusader is:

"Error: Failed to resolve hostname myshortname (hostname nor servname provided, or not known)"

The relevant entry from ~/.ssh/config:

Host myshortname
        Hostname realdomain.com
        IdentityFile ~/.ssh/myshortname.id_rsa
        Port 1089

This works in a terminal window: sftp myshortname

uname -a
FreeBSD beastie 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

konsole --version
Qt: 4.8.7
KDE Development Platform: 4.14.30
Konsole: 2.14.2

krusader --version
Qt: 4.8.7
KDE Development Platform: 4.14.30
Krusader: 2.4.0-beta3 "Single Step"

I am relatively confident that it worked on 2017/07/04, so I'm attaching lists of all package remove/install/upgrade actions after that date.  Hopefully they can help track down the cause.
Comment 2 Chris Wells 2017-07-15 19:32:01 UTC
Created attachment 106654 [details]
Package changes on 2017/07/09.
Comment 3 Chris Wells 2017-07-15 19:32:44 UTC
Created attachment 106655 [details]
Package changes on 2017/07/15.
Comment 4 Harald Sitter 2020-03-04 16:31:07 UTC
Is this still a problem with the 19.12 release? If so, with what version of libssh?
Comment 5 Chris Wells 2020-03-05 02:45:56 UTC
It works!  I completely forgot this was even a feature.  I verified it in Krusader and Dolphin on FreeBSD 12.0.  To whomever fixed it, thank you!
Comment 6 Bug Janitor Service 2020-03-20 04:33:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2020-04-04 04:33:11 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!