Forum
[PROBLEM] SSH version used by Kodi/XBMC (SFTP nor working) - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Kodi (/forum-18.html)
+--- Thread: [PROBLEM] SSH version used by Kodi/XBMC (SFTP nor working) (/thread-3063.html)



SSH version used by Kodi/XBMC (SFTP nor working) - psyLord - 24th Jul, 2015 04:57 AM

Hey everyone,
I'm trying to connect my server to Kodi (using xbian) using SFTP. But I can't connect. I only can connect with HTTPS. But because of the character limit, I want to use SFTP.

I read somewhere that it's not working correctly, because Kodi is build with an older SSH version, and therefor the handshake doesn't work correct.

On the server:
Code:
ssh -V : OpenSSH_6.8p1, OpenSSL 1.0.1p 9 Jul 2015
openssl version : OpenSSL 1.0.1p 9 Jul 2015

On my raspberry pi running xbian (Kodi 14.2 Git:Unknown (Compiled: May 7 2015))
Code:
ssh -V : OpenSSH_6.0p1 Debian-4+deb7u2, OpenSSL 1.0.1e 11 Feb 2013
openssl version : OpenSSL 1.0.1e 11 Feb 2013

Can someone clarify this, please? And does there is a workaround to solve this problem? Is it a good idea to upgrade OpenSSH manually?

Thanks for any help.


RE: SSH version used by Kodi/XBMC (SFTP nor working) - CurlyMo - 24th Jul, 2015 05:59 AM

I can just connect using SFTP with WinSCP.


RE: SSH version used by Kodi/XBMC (SFTP nor working) - psyLord - 24th Jul, 2015 06:19 PM

(24th Jul, 2015 05:59 AM)CurlyMo Wrote:  I can just connect using SFTP with WinSCP.
I also have no problems to connect to xbian using SFTP with FileZilla.

My problem is that I want to use SFTP inside Kodi (Videos > Files > Add Videos > Browse > Add network location > Protocol: Secure shell (SSH/SFTP)).

Here is the corresponding lines from kodi.log:
Code:
08:19:53 T:2884342800   ERROR: SFTPSession: Failed to connect 'kex error : did not find one of algos diffie-hellman-group1-sha1 in list curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 for kex algos'
08:19:53 T:2884342800   ERROR: SFTPSession: Not connected, can't list directory '/home/xxxxxxx/files/'
08:19:53 T:3034685440   ERROR: GetDirectory - Error getting sftp://USERNAME:PASSWORD@xxxxxxx.whatbox.ca:22//home/xxxxxxx/files/
08:19:53 T:3034685440   ERROR: CGUIMediaWindow::GetDirectory(sftp://USERNAME:PASSWORD@xxxxxxx.whatbox.ca:22//home/xxxxxxx/files/) failed

On IRC of whatbox, they said it's a problem with the older version of SSH in Kodi/XBMC. But I'm not sure how to proceed and upgrade that one.


RE: SSH version used by Kodi/XBMC (SFTP nor working) - CurlyMo - 24th Jul, 2015 06:54 PM

Can you post this on github?


RE: SSH version used by Kodi/XBMC (SFTP nor working) - psyLord - 24th Jul, 2015 07:26 PM

(24th Jul, 2015 06:54 PM)CurlyMo Wrote:  Can you post this on github?
I hope you meant that I should open an issue on github.
Here is it: https://github.com/xbianonpi/xbian/issues/751


RE: SSH version used by Kodi/XBMC (SFTP nor working) - CurlyMo - 24th Jul, 2015 09:03 PM

Our developers will eventually look into it.


RE: SSH version used by Kodi/XBMC (SFTP nor working) - psyLord - 18th Aug, 2015 02:14 AM

No news so far. But what I know is that the system wide installed version of openssh can connect to the server using SFTP from the command line.

But within XBMC it's not working. Does someone knows if they use a different approach inside XBMC?


RE: SSH version used by Kodi/XBMC (SFTP nor working) - psyLord - 20th Aug, 2015 11:02 PM

Here is a workaround if someone has a similar problem:

Install the package sshfs and mount the remote host in a folder. Then you can add this folder in Kodi/XBMC.

I followed this guide: http://mitchtech.net/dropbox-on-raspberry-pi-via-sshfs/