2
I'm currently running Ubuntu 19:10 as my primary operating system. I need to connect to an FTP server where the connection needs to be in active mode. I have tried this with Filezilla by enabling active ftp and also via the command line.
I can connect to the FTP server, however, when running it in debug mode by passing the -d
flag to the ftp
command, I am met with errors when attempting to list files.
Here is a screenshot of my terminal window:
Probably worth mentioning I can successfully run pwd
and I can change directories with cd
given I already know the name of two directories.
The first error I see is this:
ftp: setsockopt: Bad file descriptor
followed by:
ftp: setsockopt (ignored): Permission denied
500 Illegal PORT command
ftp: bind: Address already in use
From doing a lot of googling I saw a variety of suggestions such as enabling passive mode, and checking my firewall. However, when enabling passive mode I am met with the following problem:
Likewise, I've verified that UFW
is inactive from running:
sudo ufw status
I've also checked that there is nothing blocked in iptables
. I can connect to a regular FTP server in passive mode without issue. This is the first time I've been required to use active mode when connecting.
The question I therefore have is in two parts:
1. Is this likely to be an issue with my end (the client) or the FTP server?
2. If it is an issue on my end, what can I try to fix it?
Any help will be much appreciated!
have you viewed this or any page such as this https://linux.die.net/man/2/setsockopt setsockopt(2) - Linux man page "For setsockopt(), the argument should be nonzero to enable a boolean option, or zero if the option is to be disabled."
– vssher – 2020-01-12T03:07:00.737