FTP connection over TLS failed: unable to accept TLS connection: received EOF that violates protocol

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:46:04 UTC

Modified:

2016-12-21 19:09:59 UTC

0

Was this article helpful?


Have more questions?

Submit a request

FTP connection over TLS failed: unable to accept TLS connection: received EOF that violates protocol

Symptoms

FTP connection over TLS failed with the following error in /var/log/plesk/ftp_tls.log :

2015-11-04 15:14:15,931 mod_tls/2.6[618]: TLS/TLS-C requested, starting TLS handshake
2015-11-04 15:14:36,868 mod_tls/2.6[618]: unable to accept TLS connection: received EOF that violates protocol
2015-11-04 15:14:36,868 mod_tls/2.6[618]: TLS/TLS-C negotiation failed on control channel

Cause

This behavior is usually be observed if the server is behind a router or firewall that inspects packets on the default port 21(for example ISA does not support FTP with TLS)

Resolution

There are two possible solutions:

  • Disable filtering on the router/firewall/ISA server for 21 port.

  • Change ftp port in /etc/services to another (for example to 2121)

    1. Open /etc/services using ' vi ' and change the port for ftp to 2121 for both tcp/udp protocols.

      # vi /etc/services
    2. It should look like the following:

      # cat /etc/services  | grep 2121 | grep ftp
      ftp 2121/tcp
      ftp 2121/udp
    3. Restart xinetd service

      # service xinetd restart
    4. Check the FTP connection using new port.

Have more questions? Submit a request
Please sign in to leave a comment.