SFTP and FTPS as secure upload paths in web hosting

Summary

In October 2016 Manuel Schmitt points out that manitu's web hosting customers have been able to upload files via SFTP or FTPS instead of unencrypted FTP for some time. The feature had existed for a while, only the blog post about it had been forgotten. From this day the support is also listed in the package comparison on the host's website.

Two protocols with similar names

FTPS is classic FTP with TLS encryption; RFC 4217 defined it in November 2005. Like FTP, it uses a control connection and separate data connections, which makes firewalls and NAT harder when control data is encrypted.

SFTP shares only the name with FTP: it is a file transfer protocol inside an SSH connection over a single port. The IETF never published SFTP as an RFC; the last draft, draft-ietf-secsh-filexfer, expired in 2006.

Which route suits what

FTPS verifies the server's identity through a certificate, SFTP through the SSH host key. FTPS usually only needs an FTP client with a TLS option, while SFTP requires the server to provide SSH access to the file area.

Ideas

  • SFTP and FTPS protect credentials and payload data in transit.
  • FTPS adds TLS to FTP, SFTP runs inside SSH.
  • SFTP gets by with a single port, FTPS still needs data connections.
  • An existing security feature helps little as long as documentation and customer notices are missing.

Insights

  • Secure defaults must not only be available but made the obvious route.
  • Similar names hide considerable operational differences between SFTP and FTPS.
  • A protocol can become an everyday tool without a formal standard.

Facts

  • SFTP and FTPS had already been available for some time in October 2016.
  • RFC 4217 defined FTP over TLS as a Proposed Standard in November 2005.
  • SFTP is not an RFC; the IETF draft draft-ietf-secsh-filexfer expired in 2006.
  • SFTP runs over the SSH connection, FTPS over FTP control and data connections.

References

Recommendations

  • Disable plaintext FTP once legacy clients have been replaced.
  • Check the host key on the first SFTP login and the certificate with FTPS.
  • Document ports, host keys or certificates and passive data connections.

Read the original article on Hostblogger

Search the Web Archive

Found a mistake or have something to add? Get in touch.