Unable to use FTP over TLS

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
akhi_gangwar
504 Command not implemented
Posts: 10
Joined: 2019-12-09 11:00
First name: Akhilesh
Last name: Gangwar

Unable to use FTP over TLS

#1 Post by akhi_gangwar » 2020-01-03 10:00

Hi all,
I am trying ftp over tls where I am using the local Filezilla server.
The plain ftp is working fine. The data and control channels are working fine. I tried to create a tls and generate the self-signed certificate using FileZilla server app and then put the cert in .pem format at my client-side.
I am using explicit ftps and when after creating the tls, I try to connect to a server, I got failed on client-side with error -370 which is SL_ESEC_PROTOCOL_VERSION and at the server-side, I m getting this-
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> Connected on port 21, sending welcome message...
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 220 *********************Checking Filezilla ********************* //////// customized filezilla welcome message
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> E
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> A=Yd —cŽÙb÷kwù}ÀŸpMÖ.} @UcÁ{59
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> ÀÀ
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 9
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 5
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> disconnected.

I don't know why the server is showing this when I use tls otherwise everything works fine.
Can anyone help me on this?
Thanks

User avatar
botg
Site Admin
Posts: 35509
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Unable to use FTP over TLS

#2 Post by botg » 2020-01-03 10:05

Please refer to RFC 4217 for instructions how to switch to FTP over TLS.

akhi_gangwar
504 Command not implemented
Posts: 10
Joined: 2019-12-09 11:00
First name: Akhilesh
Last name: Gangwar

Re: Unable to use FTP over TLS

#3 Post by akhi_gangwar » 2020-01-03 10:55

Hi Botg,
I checked there. I have to send AUTH TLS command but before that, I am not able to open control channel.

User avatar
botg
Site Admin
Posts: 35509
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Unable to use FTP over TLS

#4 Post by botg » 2020-01-03 22:40

You open the control connection. On this control connection you send AUTH TLS, await the reply. Then perform the TLS handshake on the control connection. The established secure channel then becomes the new control connection.

akhi_gangwar
504 Command not implemented
Posts: 10
Joined: 2019-12-09 11:00
First name: Akhilesh
Last name: Gangwar

Re: Unable to use FTP over TLS

#5 Post by akhi_gangwar » 2020-01-06 06:20

Here is the problem. I am crating the control channel and then sending the AUTH TLS command and I can see on the server is 234 Using authentication type TLS.
But after this nothing happens. I have created the TLS also and the library supposed to perform the handshake as the same library I am using in https and tls is being performed there.
I can't see anything on the server-side after this.

Post Reply