Hi Guy's,
I'm having some issues when trying to connect via FTP using FileZilla. SFTP works however when trying to connect with normal FTP on port 21 it just sits trying to connect, I'm thinking this could be a firewall possibly? Any ideas?
Thanks
Unable to connect via FTP
Re: Unable to connect via FTP
What sort of firewall are you runnning? Is it firewalld or iptables? How did you open the ftp ports?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 2
- Joined: 2020/04/15 13:06:44
Re: Unable to connect via FTP
Hi Trevor,
I haven't installed any firewalls I'd imagine it would be the inbuilt one.
I opened this using firewall-cmd –zone=public –add-port=21/tcp –permanent
I haven't installed any firewalls I'd imagine it would be the inbuilt one.
I opened this using firewall-cmd –zone=public –add-port=21/tcp –permanent
Re: Unable to connect via FTP
The install will have installed firewalld for you and out of the box it is configured to only allow ssh. The command you ran to enable ftp port 21 is not the correct one as ftp is a weird protocol that uses that port and port 20 and many random ports. To handle that it needs a kernel module to track them. So undo the port 21/tcp change you made and redo it using --add-service=ftp and it will do that for you. Always use the service file if it exists as it may do other things than just open a single port.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke