I am trying to connect to my FileZilla Server with Kodi (installed on a Fire TV). So far I only got it to work with plain FTP, which is so-so at best.
To get an explicit FTP over TLS connection, the Kodi forum suggests to connect like this:
ftp://user:pass@ftp.example.com:21/|auth=TLS&verifypeer=false
When I try to connect with my user it sure does establish the connection but instantly disconnects.
Am I doing something wrong here? I know, the verifypeer=false doesn't help security much.
Thank you for any thoughts.
Proper way to connect to FileZilla Server with Kodi
Moderator: Project members
Proper way to connect to FileZilla Server with Kodi
- Attachments
-
- Capture.JPG (33.66 KiB) Viewed 4952 times
Re: Proper way to connect to FileZilla Server with Kodi
Code: Select all
ftp://user:pass@ftp.example.com:21/
Also, does your Kodi FTP client understand the modern algorithms, cipher suites and key exchanges? Does it support at least TLS 1.2, does it support session resuming? All things the FileZilla FTP Server requires.
In the server settings, under Logging, set the verbosity to 5-Debug and check again. It should now show if there's an error during handshake. Don't forget to set the logging back to 1 after you're done.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
Re: Proper way to connect to FileZilla Server with Kodi
Are you sure, the rest is not needed? I got the URL from here (https://forum.kodi.tv/showthread.php?ti ... pid3121387) and played around with it a little. I set the log level to "Debug" and checked the connection again.
This is what the it looks like, when the listener is set to "Require explicit FTP ..."
Connecting with ftp://user:pass@ftp.example.com:21/ obviously doesn't work here.
However, connecting with ftp://user:pass@ftp.example.com:21/|aut ... peer=false, produces the following entries in the log.
Once I set the listener to "... insecure plain FTP" and connect with ftp://user:pass@ftp.example.com:21/, everything works just as expected.
So I can connect successfully, only when using plain FTP, which I would like to avoid. Also, I switched to FTP for streaming UHD-files to my Fire TV, because it works way better than SMB.
Thank you for looking into this.
This is what the it looks like, when the listener is set to "Require explicit FTP ..."
Connecting with ftp://user:pass@ftp.example.com:21/ obviously doesn't work here.
However, connecting with ftp://user:pass@ftp.example.com:21/|aut ... peer=false, produces the following entries in the log.
Once I set the listener to "... insecure plain FTP" and connect with ftp://user:pass@ftp.example.com:21/, everything works just as expected.
So I can connect successfully, only when using plain FTP, which I would like to avoid. Also, I switched to FTP for streaming UHD-files to my Fire TV, because it works way better than SMB.
Thank you for looking into this.
Re: Proper way to connect to FileZilla Server with Kodi
I see. Kodi uses the URL to internally adjust itself to use FTP over TLS, and removes the last part before sending it. That makes sense, as FileZilla does not understand the Kodi syntax at all.
As for FTP over TLS, Kodi negotiates FTP over TLS v1.3 to be used. Does Kodi even support FTP over TLS 1.3?
As for FTP over TLS, Kodi negotiates FTP over TLS v1.3 to be used. Does Kodi even support FTP over TLS 1.3?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
Re: Proper way to connect to FileZilla Server with Kodi
Ok, now that explains why the TLS option sort of works.
I honestly don't know, which TLS version is supported in Kodi. I could ask in the their forum to shed some more light on this.
So what exactly does the "Sesssion ended gracefully" entry in my second screenshot mean? I made the connection using FTP over TLS but do not see any folders in Kodi's FTP client.
I found this (https://discourse.coreelec.org/t/coreel ... -tls/19491). He was struggling with the same problem and seemed to have solved it with creating a new certificate. Don't know ...
I honestly don't know, which TLS version is supported in Kodi. I could ask in the their forum to shed some more light on this.
So what exactly does the "Sesssion ended gracefully" entry in my second screenshot mean? I made the connection using FTP over TLS but do not see any folders in Kodi's FTP client.
I found this (https://discourse.coreelec.org/t/coreel ... -tls/19491). He was struggling with the same problem and seemed to have solved it with creating a new certificate. Don't know ...
Re: Proper way to connect to FileZilla Server with Kodi
Connection closed orderly. Non-graceful closure would be an outright crash.So what exactly does the "Sesssion ended gracefully" entry in my second screenshot mean?
Because the connection was closed before any data could even be send. My suspicion is that Kodi simply doesn't understand TLS 1.3 and closes the connection.I made the connection using FTP over TLS but do not see any folders in Kodi's FTP client.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
Re: Proper way to connect to FileZilla Server with Kodi
I think I found the problem. The Kodi logs indicated, it wasn't too happy with the SSL peer certificate. Another forum mentioned something about the CN in the certificate and the URL you are connecting to, having to match.
So I did just that. I replaced the CN in my certificate with the local IP I use, when making the connection, and that did the trick.
Not sure if this is by design or if libCurl/CCurl is doing something strange here. The certificate was never a problem with any other client connecting.
So I did just that. I replaced the CN in my certificate with the local IP I use, when making the connection, and that did the trick.
Not sure if this is by design or if libCurl/CCurl is doing something strange here. The certificate was never a problem with any other client connecting.