In computing, the SSH File Transfer Protocol (sometimes called Secure File Transfer Protocol or SFTP) is a network protocol that provides file transfer and manipulation functionality over any reliable data stream. It is typically used with version two of the SSH protocol (TCP port 22) to provide secure file transfer, but is intended to be usable with other protocols as well.
Contents |
Capabilities
Compared to the earlier SCP protocol, which allows only file transfers, the SFTP protocol allows for a range of operations on remote files – it is more like a remote file system protocol. An SFTP client's extra capabilities compared to an SCP client include resuming interrupted transfers, directory listings, and remote file removal. [1] For these reasons it is relatively simple to implement a GUI SFTP client compared with a GUI SCP client.
SFTP attempts to be more platform-independent than SCP; for instance, with SCP, the expansion of wildcards specified by the client is up to the server, whereas SFTP's design avoids this problem. While SCP is most frequently implemented on Unix platforms, SFTP servers are commonly available on most platforms.
SFTP is not FTP run over SSH, but rather a new protocol designed from the ground up by the IETF SECSH working group. It is sometimes confused with Simple File Transfer Protocol. [1]
The protocol itself does not provide authentication and security; it expects the underlying protocol to secure this. SFTP is most often used as subsystem of SSH protocol version 2 implementations, having been designed by the same working group. However, it is possible to run it over SSH-1 (and some implementations support this) or other data streams. Running SFTP server over SSH-1 is not platform independent as SSH-1 does not support the concept of subsystems. An SFTP client willing to connect to an SSH-1 server needs to know the path to the SFTP server binary on the server side.
The Secure Internet Live Conferencing (SILC) protocol defines the SFTP as its default file transfer protocol. In SILC the SFTP data is not protected with SSH but SILC's secure packet protocol is used to encapsulate the SFTP data into SILC packet and to deliver it peer-to-peer. This is possible as SFTP is designed to be protocol independent.
For uploads, the transferred files may be associated with their basic attributes, such as timestamps. This is an advantage over the common FTP protocol, which does not have provision for uploads to include the original date/timestamp attribute with help.
File transfer speed, SCP vs SFTP
Although both SCP and SFTP utilize the same SSH encryption during file transfer with the same general level of overhead, SCP is usually much faster than SFTP at transferring files especially on high latency networks. This happens because SCP implements a more efficient transfer algorithm, one which does not require waiting for packet confirmations. This leads to faster speed but comes at the expense of not being able to interrupt a transfer, so unlike SFTP, SCP transfer cannot be canceled without terminating the session.
Standardization
The protocol is not yet an Internet standard and attempts to make it one by the Secsh working group of the Internet Engineering Task Force (IETF) have stalled as some now view SFTP not as a file transfer protocol but instead as a file system, which places it beyond the purview of the secsh working group[2].
Drafts 00 - 02 of the Internet draft define successive revisions of version 3 of the SFTP protocol, drafts 03 - 04, version 4, draft 05, version 5, and drafts 06 - 13 define successive revisions of version 6[3]. SFTP version 3 is the most widely used version, implemented by the popular OpenSSH SFTP server. Many Microsoft Windows-based SFTP implementations use version 4 of the protocol, which has weakened its ties with the Unix platform[citation needed].
SFTP client
The term SFTP can also refer to Secure file transfer program, a command-line program that implements the client part of this protocol, such as that supplied with OpenSSH.
The sftp program provides an interactive interface similar to that of traditional FTP clients.
Some implementations of the scp program actually use the SFTP protocol to perform file transfers; however, some such implementations are still able to fallback to the SCP protocol if the server does not provide SFTP service.
SFTP server
There are numerous SFTP server implementations both for UNIX and Windows. The most widely known is perhaps OpenSSH, but there are also proprietary implementations.
SFTP proxy
The adoption of SFTP is hindered somewhat because it is difficult to control SFTP transfers on security devices at the network perimeter. There are standard tools for logging FTP transactions, like TIS fwtk or SUSE FTP proxy, but SFTP is encrypted, rendering traditional proxies ineffective for controlling SFTP traffic.
There are some tools that implement man-in-the-middle for SSH which also feature SFTP control. Such tools include Shell Control Box from BalaBit[4] and FileGate SFP from Presaris[5]. These provide functions such as SFTP transaction logging and logging of the actual data transmitted on the wire.
References
- ^ a b Barrett, Daniel; Richard E. Silverman (2001), SSH, The Secure Shell: The Definitive Guide, Cambridge: O'Reilly, ISBN 0-596-00011-1
- ^ ftp://ftp.ietf.org/ietf-mail-archive/secsh/2006-08.mail
- ^ http://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/
- ^ http://www.balabit.com/network-security/scb/
- ^ http://www.presaris.com/products/filegate
See also
- AbsoluteTelnet - SSH client that includes a GUI SFTP client for file transfer.
- List of file transfer protocols
- List of SFTP server software
- Comparison of FTP client software (including SFTP)
- FISH
- FTP
- FTPS
- Secure copy (SCP)
- SmartFTP - GUI client
- SSHFS - Mounting remote filesystem using SFTP and SSH
- WinSCP - Free Windows client with SFTP capability
- FileZilla - Open source cross-platform GUI client
- FireFTP - Free, open source, cross-platform GUI client
- Cyberduck - Free, open source Mac OS X GUI client
- WebDrive - SFTP, WebDAV, Amazon S3, Windows/Mac client
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)




