2013-07-12 245 views
1

我目前使用FTPES連接到我的FTP服務器。FTPES:是否加密數據?

我想知道:當我連接到FTP服務器時,我的PC和服務器之間的數據傳輸是加密的嗎?從日誌中我可以看到它被認證。

這是我的服務器日誌。從中,我可以告訴它是否被加密?:

Status: Retrieving directory listing... 
Command: CWD MyS03 
Response: 250 CWD command successful 
Command: PWD 
Response: 257 "/MyFiles" is the current directory 
Command: PASV 
Response: 227 Entering Passive Mode (37,58,52,72,195,33). 
Command: MLSD 
Response: 150 Opening ASCII mode data connection for MLSD 
Response: 226 Transfer complete 
Status: Directory listing successful 
Error: Connection timed out 
Error: File transfer failed after transferring 155,893,760 bytes in 247 seconds 
Status: Resolving address of 192.168.10.111 
Status: Connecting to 11.135.156.147:21210... 
Status: Connection established, waiting for welcome message... 
Response: 220 (vsFTPd 2.3.5) 
Command: AUTH TLS 
Response: 234 Proceed with negotiation. 
Status: Initializing TLS... 
Status: Verifying certificate... 
Command: USER darklord 
Status: TLS/SSL connection established. 
Response: 331 Please specify the password. 
Command: PASS ******** 
Response: 230 Login successful. 
Command: OPTS UTF8 ON 
Response: 200 Always in UTF8 mode. 
Command: PBSZ 0 
Response: 200 PBSZ set to 0. 
Command: PROT P 
Response: 200 PROT now Private. 
Status: Connected 
Status: Starting download of /test.mov 
Command: CWD /rtorrent/data 
Response: 250 Directory successfully changed. 
Command: TYPE I 
Response: 200 Switching to Binary mode. 
Command: PASV 
Response: 227 Entering Passive Mode (5,135,156,147,78,83). 
Command: REST 155893760 
Response: 350 Restart position accepted (55893760). 
Command: RETR test.mov 
Response: 150 Opening BINARY mode data connection for test.mov (197992856 bytes). 

回答

2

一般來說,FTPS(FTPES)並不一定意味着數據被加密。雖然它通常被加密(就像在這個特定的例子中一樣)。

您的客戶請求私有使用PROT P命令的數據通道保護級別。 私有級別表示數據將爲完整性和機密性保護

當服務器確認請求(響應200 PROT now Private)時,數據被加密(=機密性保護)。請參考RFC 2228