Forum

Full Version: SSH version used by Kodi/XBMC (SFTP nor working)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
I can just connect using SFTP with WinSCP.
(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.
Can you post this on github?
(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
Our developers will eventually look into it.
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?
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/
Reference URL's