lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.08k stars 159 forks source link

Unlegible lftp command or directive sent gets an 502 error at FTP Server #627

Closed andreswatson closed 3 years ago

andreswatson commented 3 years ago

Hi, I'm using lftp to connect to a FTP Server module from https://github.com/autovance/ftp-srv

Once the connection is established, the FTP Server receives from lftp an unlegible command or directive that results in a "502 Command not allowed: ���".

Any idea what it is that ilegible command that es lftp sending?

Here my log at my FTP Server:

{"name":"ftpLogger","hostname":"nodejs-s-1vcpu-1gb-nyc3-01","pid":348920,"id":"f565d35c-2397-4f65-9b4c-4a77b4090c7b","ip":"201.216.223.162","level":10,"msg":"[ '���' ]","time":"2021-04-02T03:04:32.370Z","v":0} {"name":"ftpLogger","hostname":"nodejs-s-1vcpu-1gb-nyc3-01","pid":348920,"id":"f565d35c-2397-4f65-9b4c-4a77b4090c7b","ip":"201.216.223.162","directive":"���","level":10,"command":{"directive":"���","arg":null,"flags":[],"raw":"���"},"msg":"Handle command","time":"2021-04-02T03:04:32.370Z","v":0} {"name":"ftpLogger","hostname":"nodejs-s-1vcpu-1gb-nyc3-01","pid":348920,"id":"f565d35c-2397-4f65-9b4c-4a77b4090c7b","ip":"201.216.223.162","level":10,"port":2121,"encoding":"utf8","message":"502 Command not allowed: ���","msg":"Reply","time":"2021-04-02T03:04:32.370Z","v":0}

lavv17 commented 3 years ago

I think it is a telnet sequence. You can disable it by “set ftp:use-telnet-iac off”

On Sat, 3 Apr 2021 at 02:34, Andres Watson @.***> wrote:

Hi, I'm using lftp to connect to a FTP Server module from https://github.com/autovance/ftp-srv

Once the connection is established, the FTP Server receives from lftp an unlegible command or directive that results in a "502 Command not allowed: ���".

Any idea what it is that ilegible command that es lftp sending?

Here my log at my FTP Server:

{"name":"ftpLogger","hostname":"nodejs-s-1vcpu-1gb-nyc3-01","pid":348920,"id":"f565d35c-2397-4f65-9b4c-4a77b4090c7b","ip":"201.216.223.162","level":10,"msg":"[ '���' ]","time":"2021-04-02T03:04:32.370Z","v":0} {"name":"ftpLogger","hostname":"nodejs-s-1vcpu-1gb-nyc3-01","pid":348920,"id":"f565d35c-2397-4f65-9b4c-4a77b4090c7b","ip":"201.216.223.162","directive":"���","level":10,"command":{"directive":"���","arg":null,"flags":[],"raw":"���"},"msg":"Handle command","time":"2021-04-02T03:04:32.370Z","v":0} {"name":"ftpLogger","hostname":"nodejs-s-1vcpu-1gb-nyc3-01","pid":348920,"id":"f565d35c-2397-4f65-9b4c-4a77b4090c7b","ip":"201.216.223.162","level":10,"port":2121,"encoding":"utf8","message":"502 Command not allowed: ���","msg":"Reply","time":"2021-04-02T03:04:32.370Z","v":0}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lavv17/lftp/issues/627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLWXHLQ73FT5HOP2B42ADTGZIBFANCNFSM42JSQNPA .

-- Alexander.

andreswatson commented 3 years ago

Thanks Alexander! Was that