#2 Python 应用: 简易 FTP 服务器
Python FTP PythonSimpleServer 2018-05-07FTP 需要 pyftpdlib 包的支持。
coding in a complicated world
FTP 需要 pyftpdlib 包的支持。
https://en.wikipedia.org/wiki/File_Transfer_Protocol
B/S 模式,一个连接两个通道,命令通道传输控制指令以及响应,数据通道传输数据。
S: 220 Welcome to markjour.cn FTP service.
C: USER admin
S: 331 Please specify the password.
C: PASS ****************
S: 230 Login successful.
IPv6 引入之后,有了两个新的指令(RFC#2428):
EPRT |<网络协议>|<IP>|<端口>|EPSV 1,EPSV 2,EPSV ALLhttps://en.wikipedia.org/wiki/List_of_FTP_commands
FTP Secure,FTP over SSL
FTP + TLS
Secure File Transfer Protocol,安全文件传送协议,SSH 的一部分。
需要借助 sshd 充当服务器端。
https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol
SFTP 和 FTPS 的区别就是分别使用 SSH 协议和 TLS 协议实现网络加密。
https://en.wikipedia.org/wiki/Comparison_of_file_transfer_protocols