Summary: | When adding adding network folder in dolphin for ssh (via sftp or fish) getting message Unable to connect to server | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio-extras | Reporter: | Hans <hans> |
Component: | SFTP | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | hans, sitter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Hans
2020-11-04 11:15:26 UTC
Can you elaborate on your intended ssh-agent involvement here? Your .bashrc is irrelevant unless you start your entire desktop session from a bash as that entire sourcing dancing will do nothing. Bash is not involved in starting up a desktop session. And please provide a debug log with libssh output https://community.kde.org/Guidelines_and_HOWTOs/Debugging/Debugging_IOSlaves/Debugging_kio_sftp#Logging_with_libssh_debug_output Harald, Yea I guess I gave a bit too much detail (-: In brief, I have an ssh-agent running, added a key, using the kde-wallet to store the passphrase (via SSH_ASKPASS) and it is working from command line with ssh and sftp. It does not work via dolphin, does this not use the ssh-agent? I will try to get the libssh output. Hans Hi, Even stranger: When executing as per suggested website it connects and works!!! KIO_SFTP_LOG_VERBOSITY=10 KDE_FORK_SLAVES=1 QT_LOGGING_RULES="log_kio_sftp=true;" dolphin --new-window sftp://xx@xx.xx.xxx.xxx BUT when doing the following, I am getting authentication error! dolphin --new-window sftp://xx@xx.xx.xxx.xxx When doing: dolphin --new-window sftp://xx@xx.xx.xxx.xxx It opens window with authentication error and on the command line it says kf.kio.core: Protocol Class of url QUrl("sftp://xx@xx.xx.xxx.xxx") , isn't ':local', cancelling job. I'm 99% certain this is a setup problem. The reason > KIO_SFTP_LOG_VERBOSITY=10 KDE_FORK_SLAVES=1 QT_LOGGING_RULES="log_kio_sftp=true;" dolphin --new-window sftp://xx@xx.xx.xxx.xxx works is because of KDE_FORK_SLAVES=1 which forces the underlying communication with libssh to start from dolphin directly (thus inheriting the environment which you set via bashrc) > dolphin --new-window sftp://xx@xx.xx.xxx.xxx doesn't work because the forking happens from a different process that is started early on in the startup of plasma and as I've mentioned bashrc doesn't play into that. Simply put: part of your session doesn't have the env set up correctly because you rely on bashrc but plasma isn't written in bash so it doesn't care what you put there. You could try putting the ssh-agent stuff into a plasma env script [1] or an Xsession.d script. In any event I encourage you to take this to a support forum to get help on setting up ssh-agent properly for a plasma session. [1] https://userbase.kde.org/Session_Environment_Variables/en |