FTP Server Connection Fails at Retrieving Directory Listing

0

I'm using cPanel/WHM within Amazon Lightsail. I've created a new user in WHM and configured FTP and Shell access through WHM.

Now, as shown in the attached image, I'm attempting to connect to FTP using Filezilla, but I'm unable to establish a connection. It consistently shows "Retrieving directory listing..." and then the connection is dropped.

Certainly, I can connect using the default ec2-user provided by Lightsail using SFTP. However, my goal is to connect via FTP using the user created in WHM.

I would appreciate it if you could review the image and provide guidance on resolving this issue.!Enter image description here

YB
posta 4 mesi fa222 visualizzazioni
2 Risposte
1

Hello.

Looking at the logs, it seems that the connection is using FTP passive mode, but are the port numbers allowed by Lightsail's firewall correct?
If no port number is set on the FTP server side, one of the ports between 49152 - 65534 will be used.
https://support.cpanel.net/hc/en-us/articles/360055135534-What-ports-should-I-open-in-my-network-firewall-

profile picture
ESPERTO
con risposta 4 mesi fa
profile picture
ESPERTO
verificato un mese fa
0

FTP requires ports 20 & 21 to be open, and it looks like your security group is only allowing traffic on 21.

https://learningnetwork.cisco.com/s/question/0D53i00000Ksx4LCAR/why-does-ftp-have-2-port-numbers

profile picture
ESPERTO
Steve_M
con risposta 4 mesi fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande