--- title: SFTP, FTP與FTPS tags: FTP, SFTP --- <style> #doc.markdown-body, .ui-infobar, .container-thiner { max-width: 1080px; } .ui-content #doc.markdown-body, .ui-content .ui-infobar { max-width: 1550px; } @media (min-width: 768px) { #doc.markdown-body, .ui-infobar { max-width: 750px; } } @media (min-width: 1200px) { #doc.markdown-body, .ui-infobar { max-width: 1170px; } } </style> |Item|FTP|FTPS|SFTP| |:--|:--|:--|:--| |全名|File Transfer Protocol <br> 檔案傳輸協議|FTP-SSL (FTP-SSH)|Secure File Transfer Protocol<br>安全檔案傳輸協議| |特性|1. TCP/IP協議簇中的一個成員<br> 2. Client-Server架構<br> 3. FTP使用兩個TCP連接,一般狀況,21號埠負責控制連接,20號埠負責數據連接|1. 藉助SSL協議加密 (SSL是為HTTP/SMTP等加密設計的)<br> 2. 如果是ftp-over-ssh,就是完全不同於sftp的傳輸方式了,就是利用ftp伺服器和ssh協議加密傳輸數據|1. 使用SSH傳輸協議加密從客戶端與伺服器的FTP連接 (SSH是為TELNET/FTP等加密、建立傳輸通道而設計的)<br>2. 與FTP有著幾乎一樣的語法和功能<br> 3. SFTP協議是SSH中的一條獨立的協議,利用SFTP伺服器就可以傳輸數據<br>4. 使用sshd守護進程(埠號默認是22)來完成相應的連接操作| |缺點|1. 上傳/下載文件時傳輸的資料未加密<br>2. 在伺服器端的檔案不安全||使用了加密/解密技術,所以傳輸效率比FTP要低|  SSH就像鋪管子,SSL就像打包裹,鋪管子和打包裹都會使數據安全,都是一個製作密鑰的過程,而因為SSH是一個管子所以它很適合FTP的安全傳輸。
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up