Using Secure File Transfer (sftp2)
sftp2 is an FTP-like client that works in a similar fashion to scp2.
Just like scp2, sftp2 runs with normal user privileges and uses
ssh2 for transport. Even though it functions like ftp, 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 (sshd2).
The basic syntax for sftp2 is:
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,
sftp, that points to the actual sftp2 executable. sftp
was not included in Secure Shell 1.x.
Actual usage of sftp2 is similar to the traditional ftp program.
The sftp2 command-line options and commands are documented in detail on the
sftp2 man page.
ASCII Transfer
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.