FTP Passive mode Client Sends the PASV command

  • Slides: 12
Download presentation

FTP傳輸模式 • Passive mode – Client Sends the PASV command to Server – Server

FTP傳輸模式 • Passive mode – Client Sends the PASV command to Server – Server open a port for the data connection and return the address of that port. – Server listens on that port and the client connects to it. • Active mode – Client Sends the PORT command to server – Client listens on a port and sends that address to the remote server, who connects back to it.

FTP傳輸模式 – Passive mode 使用者 FTP伺服器 進行連線(建立Control Channel) 設定被動傳輸模式 (下達 PSAV Command) ØServer 開啟一個

FTP傳輸模式 – Passive mode 使用者 FTP伺服器 進行連線(建立Control Channel) 設定被動傳輸模式 (下達 PSAV Command) ØServer 開啟一個 Port Ø利用 Control Channel 通知 Client 開哪個Port 進行連線(建立 Data Channel) 由 Server 傳送檔案資料到 Client

FTP傳輸模式 – Active mode FTP伺服器 使用者 進行連線(建立Control Channel) 設定主動傳輸模式 (下達 PORT Command) ØClient 開啟一個

FTP傳輸模式 – Active mode FTP伺服器 使用者 進行連線(建立Control Channel) 設定主動傳輸模式 (下達 PORT Command) ØClient 開啟一個 Port Ø利用 Control Channel 通知 Server 開哪個Port 進行連線(建立 Data Channel) 由 Server 傳送檔案資料到 Client

Opening the control connection

Opening the control connection

Creating the data connection

Creating the data connection

FTP設定模式 • Microsoft Windows 環境 – Leapftp • Sites -> Site Manager -> 選一個站台

FTP設定模式 • Microsoft Windows 環境 – Leapftp • Sites -> Site Manager -> 選一個站台 -> Advanced • 將 Use PASV mode 打勾 – Cute. FTP • 檔案 -> 設定 -> Firewall • 勾選PASV模式 • UNIX環境 – ftp 指令 • passive 指令

FTP設定模式 DEMO

FTP設定模式 DEMO