Unable to connect to the website using FTP locally

Created:

2017-01-04 06:29:09 UTC

Modified:

2017-08-08 13:25:12 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to connect to the website using FTP locally

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  • Unable to connect to the website using FTP locally:
    # ftp ftp.example
    Connection timed out
  • netstat is showing that 2121 port is listening:
    # netstat -plutn | grep 21
    tcp6       0      0 :::2121                   :::*                    LISTEN      145/xinetd

Cause

Port mismatch in xinetd startup script and proftpd configuration file.

Resolution

Make sure that the same port is set in both /etc/proftp.conf and /etc/services :

# grep 'ftp' /etc/services
ftp-data 20/tcp
ftp-data 20/udp
# 21 is registered to ftp, but also used by fsp
ftp 21/tcp
ftp 21/udp fsp fspd
# grep -i port /etc/proftpd.conf
        # do not force the renegotations.  Some clients do not support
# Port 21 is the standard FTP port.
Port                            21
Have more questions? Submit a request
Please sign in to leave a comment.