---
title: "File Copy 和 FTP 的区别"
author: "kooyee"
date: "2010-05-21T15:57:59Z"
tags: []
categories: ["互联网"]
slug: "file-copy-ftp"
draft: false
lastmod: "2010-05-21T15:57:59Z"
id: 671817
url: "https://kooyee.iteye.com/blog/671817"
---

File Copy

文件传输的两台主机在同一局域网内， 比如window在网上邻居里的文件复制，粘贴到另一台主机上。

FTP

以plaintext传输， 包含 user/passwd并使用20、21端口。FTP文件传输时可以跨平台和操作系统， 比如window可以向linux传输文件。文件传输两端可以不在同一局域网内。

传输方式没有提供加密， 但用户只能访问 ftp root directory， 这样来限制用户的访问。

SFTP使用port 22

FTP over SSH和SFTP不同， 是在SSH tunnel传输FTP

下面是SCP一些介绍

scp is [secure](http://www.linuxquestions.org/questions/) copy ftp is file transfer protocol.

scp: encrypted, including username/passwd; part of ssh suite, uses port 22; can put a file anywhere you have privelege to. Also SCP uses any port you specify

scp is a tool to [copy files  
\
![](http://kona.kontera.com/javascript/lib/imgs/grey_loader.gif)](http://www.linuxquestions.org/questions/)

to/from remote servers using an SSH channel. Unlike ssh access it only runs a single copy command. Just as ssh it has full access to the [file system](http://www.linuxquestions.org/questions/) , only limited by the permissions of the login user account.

[![](http://kona.kontera.com/javascript/lib/imgs/grey_loader.gif)](http://www.linuxquestions.org/questions/)

&lt;!-- google\_ad\_section\_end --&gt;

&lt;!-- / message --&gt;