Sự khác nhau giữa FTPS và SFTP là gì?

Mục lục:

Sự khác nhau giữa FTPS và SFTP là gì?
Sự khác nhau giữa FTPS và SFTP là gì?

Video: Sự khác nhau giữa FTPS và SFTP là gì?

Video: Sự khác nhau giữa FTPS và SFTP là gì?
Video: Tùy biến Win 10/11...Linux - YouTube 2024, Có thể
Anonim
Khi bạn đang trong quá trình thiết lập khả năng chuyển tập tin từ xa cho nhân viên của bạn, bạn muốn mọi thứ trở nên đơn giản và an toàn nhất có thể. Với ý nghĩ đó, cái nào tốt hơn, FTPS hay SFTP? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.
Khi bạn đang trong quá trình thiết lập khả năng chuyển tập tin từ xa cho nhân viên của bạn, bạn muốn mọi thứ trở nên đơn giản và an toàn nhất có thể. Với ý nghĩ đó, cái nào tốt hơn, FTPS hay SFTP? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Ảnh chụp màn hình lịch sự của kojihachisu (Flickr).

Câu hỏi

Người dùng SuperUser reader334875 muốn biết sự khác biệt giữa FTPS và SFTP là gì và cái nào tốt hơn:

I am trying to set up a system for four of my employees who work remotely so that they can transfer files. I also need it to be secure. Is SFTP better than FTPS? What is the difference between the two?

Sự khác nhau giữa hai và cái nào tốt hơn?

Câu trả lời

Những người đóng góp của SuperUser NuTTyX và Vdub có câu trả lời cho chúng tôi. Đầu tiên, NuTTyX:

They are two completely different protocols.

FTPS is FTP with SSL for security. It uses a control channel and opens new connections for the data transfer. As it uses SSL, it requires a certificate.

SFTP (SSH File Transfer Protocol/Secure File Transfer Protocol) was designed as an extension of SSH to provide file transfer capability, so it usually uses only the SSH port for both data and control.

In most SSH server installations you will have SFTP support, but FTPS would need the additional configuration of a supported FTP server.

Tiếp theo là câu trả lời từ Vdub:

FTPS (FTP/SSL) is a name used to provide a number of ways that FTP software can perform secure file transfers. Each way involves the use of a SSL/TLS layer below the standard FTP protocol to encrypt the control and/or data channels.

Pros:

  • Widely known and used
  • The communication can be read and understood by a human
  • Provides services for server-to-server file transfer
  • SSL/TLS has good authentication mechanisms (X.509 certificate features)
  • FTP and SSL/TLS support is built into many internet communications frameworks

Cons:

  • Does not have a uniform directory listing format
  • Requires a secondary DATA channel, which makes it hard to use behind firewalls
  • Does not define a standard for file name character sets (encodings)
  • Not all FTP servers support SSL/TLS
  • Does not have a standard way to get and change file or directory attributes

SFTP (SSH File Transfer Protocol) is a network protocol that provides file transfer and manipulation functionality over any reliable data stream. It is typically used with the SSH-2 protocol (TCP port 22) to provide secure file transfer, but is intended to be usable with other protocols as well.

Pros:

  • Has a good standards background which strictly defines most (if not all) aspects of operations
  • Has only one connection (no need for a DATA connection)
  • The connection is always secured
  • The directory listing is uniform and machine-readable
  • The protocol includes operations for permission and attribute manipulation, file locking, and more functionality

Cons:

  • The communication is binary and can not be logged “as is” for human reading
  • SSH keys are harder to manage and validate
  • The standards define certain things as optional or recommended, which leads to certain compatibility problems between different software titles from different vendors.
  • No server-to-server copy and recursive directory removal operations
  • No built-in SSH/SFTP support in VCL and.NET frameworks

Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Đề xuất: