Attempting to set up VSFTPD on new Centos 7 server - connection troubles - where to start looking for troubleshooting?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Attempting to set up VSFTPD on new Centos 7 server - connection troubles - where to start looking for troubleshooting?
I am attempting to set up VSFTPD on a new server running CentOS 7. This server was set up with most common programs not installed, and I've been trying to muddle my way through. I've got an older server, running an older version of CentOS (and presumably an older version of VSFTPD) that I was attempting to use as a model. I am using the same ftp username/password for both systems.
I can get into the FTP directory on the original server either through the Windows command line, or through the program my predecessor built in Delphi 7 (using the Indy FTP components). With the new machine, I can connect from the Windows command line, but not with the external program. With the external program, during the 'connect' call to the third-party component, I'm instead getting an error message 'Socket Error # 10060 Connection timed out'. I am receiving this error both with the configuration file from the fresh VSFTPD install on the new system, and with the copied configuration file from the old system.
Given that both connections work on the old system, I'm assuming I've somehow done something wrong while configuring the new one.
Could someone please give me a good starting point for where in the configuration files I need to be looking, or if not the configuration files, where else I might be having problems?
Verify you've opened both ports 20 and 21 in firewalld (new frontend for iptables - don't edit iptables directly).
However, if this is a new server it might a be a good time to push abandoning ftp in favor of sftp which is much more secure. I was able to push back when we moved to a new server a few years back to eliminate all the ftp accounts. These days most of the B2B partners we deal with are shutting down ftp and making us use sftp to reach them.
Windows users can access sftp using WinSCP on their workstations which is a free download. (WinSCP by the way can also be used to connect to ftp servers.)
Thank you for the advice - it looks like I didn't have port 20 opened. However, after adding that and restarting firewalld, I'm still seeing the same results from the Delphi program afterwards - it blocks for a time on the connect call, then errors out with the same '10060' error.
Given this, what is the likeliest next thing I should be looking for?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.