sftp ftps的区别_FTPS和SFTP有什么区别?

sftp ftps的区别

sftp ftps的区别

what-is-the-difference-between-ftps-and-sftp-00

When you are in the process of setting up remote file transfer capabilities for your employees, you want things to be as simple and secure as possible. With that in mind, which is better, FTPS or SFTP? Today’s SuperUser Q&A post has the answers for a curious reader’s question.

在为员工设置远程文件传输功能时,您希望事情变得尽可能简单和安全。 考虑到这一点,FTPS或SFTP哪个更好? 今天的“超级用户问答”帖子为读者提供了一个好奇的问题的答案。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Screenshot courtesy of kojihachisu (Flickr).

屏幕截图由kojihachisu(Flickr)提供

问题 (The Question)

SuperUser reader user334875 wants to know what the difference is between FTPS and SFTP, and which one is better:

SuperUser阅读器user334875想知道FTPS和SFTP有什么区别,哪个更好:

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?

我正在尝试为我的四个远程工作的员工建立一个系统,以便他们可以传输文件。 我也需要确保它的安全。 SFTP比FTPS好吗? 两者有什么区别?

What is the difference between the two and which one is better?

两者之间有什么区别,哪个更好?

答案 (The Answer)

SuperUser contributors NuTTyX and Vdub have the answer for us. First up, NuTTyX:

超级用户贡献者NuTTyX和Vdub为我们找到了答案。 首先,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.

为了安全起见,FTPS是具有SSL的FTP。 它使用控制通道并打开新的连接以进行数据传输。 由于使用SSL,因此需要证书。

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.

SFTP(SSH文件传输协议/安全文件传输协议)被设计为SSH的扩展,以提供文件传输功能,因此,它通常仅将SSH端口用于数据和控制。

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

在大多数SSH服务器安装中,您将获得SFTP支持,但是FTPS需要支持的FTP服务器的其他配置。

Followed by the answer from Vdub:

接下来是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.

FTPS(FTP / SSL)是一个名称,用于提供FTP软件执行安全文件传输的多种方式。 每种方式都涉及在标准FTP协议之下使用SSL / TLS层来加密控制和/或数据通道。

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)

    SSL / TLS具有良好的身份验证机制(X.509证书功能)
  • FTP and SSL/TLS support is built into many internet communications frameworks

    许多Internet通信框架都内置了FTP和SSL / TLS支持

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

    并非所有的FTP服务器都支持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.

SFTP(SSH文件传输协议)是一种网络协议,可通过任何可靠的数据流提供文件传输和操作功能。 它通常与SSH-2协议(TCP端口22)一起使用以提供安全的文件传输,但也打算与其他协议一起使用。

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)

    仅具有一个连接(无需DATA连接)
  • 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

    SSH密钥更难管理和验证
  • 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

    VCL和.NET框架中没有内置的SSH / SFTP支持


Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/194740/what-is-the-difference-between-ftps-and-sftp/

sftp ftps的区别

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值