Bug 484220 - sftp Could not set host when using hostname from .ssh/config
Summary: sftp Could not set host when using hostname from .ssh/config
Status: REPORTED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (other bugs)
Version First Reported In: 23.08.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-22 08:42 UTC by kd1j883xx
Modified: 2024-03-22 08:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kd1j883xx 2024-03-22 08:42:58 UTC
SUMMARY

I have entries like below to ~/.ssh/config (the below is just an example, I do have other hosts configured to use specific ssh keys)

```
Host some_local_host
  User redacted
  HostName 192.168.1.23
  Port 22
```

When I open dolphin and try to access `sftp://some_local_host` I get an error 
```
Internal Error
Please send a full bug report at https://bugs.kde.org
Could not set host
```
This problem appeared some time ago, I was on Kububtu 22.04 and after an update the functionality broke, before the update it was working fine, I have updated to Kubuntu 23.10 but the functionality is still broken (I do not know what versions I had before on Kubuntu 22.04).


STEPS TO REPRODUCE
1. set custom configuration in ~/.ssh/config
2. try to access sftp for the added hostname

OBSERVED RESULT
Cannot connect to host, got below error

Internal Error
Please send a full bug report at https://bugs.kde.org
Could not set host


EXPECTED RESULT
Ask for password if necessary and connect to host using sftp.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  Kubuntu 23.10 and Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Tried to follow instructions from the provided link for backtrace (this is second attempt, on the first one there were lots of downloads):

(gdb) run                                                                                                                                                                       
Starting program: /usr/bin/dolphin 
[Thread debugging using libthread_db enabled]                                                                                                                                   
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffefb3a6c0 (LWP 21983)]                                                                                                                                         
[New Thread 0x7fffeca216c0 (LWP 21986)]                                                                                                                                         
[New Thread 0x7fffe0dff6c0 (LWP 21987)]
[New Thread 0x7fffdbfff6c0 (LWP 21988)]
[New Thread 0x7fffdb7fe6c0 (LWP 21989)]
[New Thread 0x7fffdaffd6c0 (LWP 21990)]
[New Thread 0x7fffda7fc6c0 (LWP 21991)]
[New Thread 0x7fffd9ffb6c0 (LWP 21992)]
[New Thread 0x7fffd97fa6c0 (LWP 21993)]
[New Thread 0x7fffd8ff96c0 (LWP 21994)]
[Thread 0x7fffd8ff96c0 (LWP 21994) exited]
[Thread 0x7fffd97fa6c0 (LWP 21993) exited]
[New Thread 0x7fffd97fa6c0 (LWP 21995)]                                                                                                                                         
[New Thread 0x7fffd8ff96c0 (LWP 21996)]
[New Thread 0x7fffb9bff6c0 (LWP 21997)]                                                                                                                                         
[New Thread 0x7fffb93fe6c0 (LWP 21998)]
[New Thread 0x7fffb8bfd6c0 (LWP 21999)]
[New Thread 0x7fffa7fff6c0 (LWP 22000)]
[New Thread 0x7fffa77fe6c0 (LWP 22001)]
[Detaching after fork from child process 22004]                                                                                                                                 
[Detaching after fork from child process 22006]
[New Thread 0x7fffa6ffd6c0 (LWP 22008)]                                                                                                                                         
[New Thread 0x7fffa67fc6c0 (LWP 22009)]
[New Thread 0x7fffa5ffb6c0 (LWP 22012)]
[New Thread 0x7fffa57fa6c0 (LWP 22013)]
[Detaching after fork from child process 22014]
libpng warning: iCCP: known incorrect sRGB profile
[New Thread 0x7fffa4ff96c0 (LWP 22038)]
[Thread 0x7fffa4ff96c0 (LWP 22038) exited]
[Detaching after fork from child process 22041]                                                                                                                                 
[Detaching after fork from child process 22043]
kf.kio.core: "Internal Error\nPlease send a full bug report at https://bugs.kde.org\nCould not set host."
kf.kio.core: "Internal Error\nPlease send a full bug report at https://bugs.kde.org\nCould not set host."
[Thread 0x7fffb8bfd6c0 (LWP 21999) exited]
[Thread 0x7fffb93fe6c0 (LWP 21998) exited]
[Thread 0x7fffb9bff6c0 (LWP 21997) exited]
[Thread 0x7fffa7fff6c0 (LWP 22000) exited]
[Thread 0x7fffd8ff96c0 (LWP 21996) exited]
[Thread 0x7fffa67fc6c0 (LWP 22009) exited]
[Thread 0x7fffa57fa6c0 (LWP 22013) exited]
[Thread 0x7fffa6ffd6c0 (LWP 22008) exited]
[Thread 0x7fffa5ffb6c0 (LWP 22012) exited]
[Thread 0x7fffefb3a6c0 (LWP 21983) exited]
[Thread 0x7fffd9ffb6c0 (LWP 21992) exited]
[Thread 0x7fffda7fc6c0 (LWP 21991) exited]
[Thread 0x7fffdaffd6c0 (LWP 21990) exited]
[Thread 0x7fffdb7fe6c0 (LWP 21989) exited]
[Thread 0x7fffdbfff6c0 (LWP 21988) exited]
[Thread 0x7fffe0dff6c0 (LWP 21987) exited]
[Thread 0x7fffeca216c0 (LWP 21986) exited]
[Thread 0x7fffd97fa6c0 (LWP 21995) exited]
[Thread 0x7ffff05f3540 (LWP 21980) exited]
[Thread 0x7fffa77fe6c0 (LWP 22001) exited]
[New process 21980]
[Inferior 1 (process 21980) exited normally]
(gdb) backtrace
No stack.
(gdb)