Using Secure File Transfer (
sftp2 is an FTP-like client that works in a similar fashion to
scp2. Just like
sftp2 runs with normal user privileges and uses
ssh2 for transport. Even though it functions like
sftp2 does not use the FTP daemon or the FTP client for its connections. The
sftp2 client can be used to connect to any host that is running the Secure Shell server daemon (
The basic syntax for
sftp [options] [user@]host
Note: As shown in the example above, in the normal case, you do not have to type
sftp2. The installation process creates a symbolic link,
, that points to the actual
sftp was not included in Secure Shell 1.x.
Actual usage of
sftp2 is similar to the traditional
sftp2 command-line options and commands are documented in detail on the
sftp2 man page.
To facilitate successful transferring of ASCII (plaintext) files, the server provides its newline convention to the client so that it can handle the newline convention properly. On Windows systems, a line break is specified by using Carriage Return and Linefeed (CRLF, with ASCII values of 13 and 10). Unix systems use only Linefeed (LF, or the ASCII value 10) for this purpose.