Can't access to SFTP location
#1
Exclamation 
Hi all,
I want to access SFTP location with films but I can't access it neither from Video/Files and System/File manager.
The server has no default port (2222 instead of 22) and from command line with sftp command I can access easly it, with the same credential.

Here's my configuration:
XBMC (12.2 Git:32b1a5e), Platform: Linux (Ubuntu 11.10 - XBMCbuntu, 3.0.0-17-generic i686

Here's the debug:
http://xbmclogs.com/show.php?id=74952

20:09:36 T:2723269488 INFO: SFTPSession: Creating new session on host 'server.myisp.net:2222' with user 'USER'
20:09:36 T:3047438096 DEBUG: ------ Window Init (DialogBusy.xml) ------
20:09:42 T:2723269488 ERROR: SFTPSession: Failed to connect 'Timeout connecting to server.myisp.net'
20:09:42 T:2723269488 ERROR: SFTPSession: Not connected, can't list directory
20:09:42 T:3047438096 ERROR: GetDirectory - Error getting sftp://USER:PASSWD@Server.myisp.net:2222/
20:09:42 T:3047438096 ERROR: CGUIMediaWindow::GetDirectory(sftp://USER:PASSWD@Server.myisp.net:2222/) failed
20:09:42 T:3047438096 DEBUG: CGUIMediaWindow::GetDirectory (sources://video/)

":" on Linux sftp means directory, not port, it could be the problem?
Anyone can help me?
TIA
Reply
#2
Addition info, on source re-configuration it reach the server! (see additional logs and Wireshark TCP capture)
But the result is the same:

Logs
20:44:29 T:3047438096 DEBUG: LIRC: Update - NEW at 2173903:000000037ff07bdd 00 KEY_OK mceusb (KEY_OK)
20:44:29 T:3047438096 DEBUG: OnKey: 11 (0b) pressed, action is Select
20:44:29 T:3047438096 INFO: SFTPSession: Creating new session on host 'server.myisp.net:2222' with user 'USER'
20:44:34 T:3047438096 ERROR: SFTPSession: Failed to connect 'Timeout connecting to server.myisp.net'
20:44:34 T:3047438096 ERROR: SFTPSession: Not connected, can't list directory
20:44:34 T:3047438096 ERROR: GetDirectory - Error getting sftp://USER:PASSWORD@Server.myisp.net:2222/
20:44:34 T:3047438096 DEBUG: ------ Window Init (DialogYesNo.xml) ------
20:44:39 T:2739960688 DEBUG: Thread Jobworker 2739960688 terminating (autodelete)

Wireshark
It addresses the correct port 2222.
XBMC request
SSH-2.0-mod_sftp/0.9.8
...|......6..
.-r.
.......diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1....ssh-rsa,ssh-dss....aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc....aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc...:hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160...:hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160....none....none...............[......
SFTP server response
SSH-2.0-libssh-0.5.2
..............Bye Bye...........

Thanks!
Reply
#3
Are you able to sftp with some other client? I actually know very little about Linux but not many seem to answer sftp questions here so thought I'd post anyway.

I did get mine working with my NAS (which is Linux based) and laptop (win 8). xbmc is only installed on my laptop even though I sftp into my NAS to get my media.

I first checked to see if sftp was working at all using filezilla, nevermind xbmc.

If xbmc forum can't help you, you might try a networking forum that knows more about sftp in general. Good luck.
Reply
#4
Hi heehee62, thank you.
I tried with x86 XBMCbuntu and with Raspberry Raspbmc, but the result is the same.

This is instead a connection from XBMCbuntu console to the same server and it works:

patanegra@xbmc:~$ sftp -P 2222 USER@Server.myisp.net
The authenticity of host '[server.myisp.net]:2222 ([113.174.17.79]:2222)' can't be established.
RSA key fingerprint is 32:4a:e7:e8:71:e7:e5:03:c4:11:ef:ae:5e:96:ad:82.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '[server.myisp.net]:2222,[113.174.17.79]:2222' (RSA) to the list of known hosts.
USER@Server.myisp.net's password:
Connected to server.myisp.net.
sftp> get

I can't change sftp port on the server but I suppose non standard port could be the problem.
So it isn't a networking problem, but it depends on sftp client in xbmc.
How I can proceed?

TIA
Reply
#5
Any progress on this? It's still an issue in 14.2. 15.0 just freezes when trying to add an SFTP share.
Reply

Logout Mark Read Team Forum Stats Members Help
Can't access to SFTP location1