sftp implements the SSH File Transfer Protocol as defined in IETF draft-ietf-secsh-filexfer. There is no relationship between the protocol used by sftp and the FTP protocol (RFC959) provided by ftp(1).
The following options are supported:
Enables compression, using the -C flag in ssh(1).
Specifies an option to be directly passed to ssh(1).
Raises logging level. This option is also passed to ssh(1).
The following operands are supported:
The name of the host to which sftp connects and logs into.
Once in interactive mode, sftp understands a set of commands similar to those of ftp(1). Commands are case insensitive and pathnames may be enclosed in quotes if they contain spaces.
Changes remote directory to path.
Changes local directory to path.
Changes group of file path to grp. grp must be a numeric GID.
Changes permissions of file path to mode.
Changes owner of file path to own. own must be a numeric UID.
Displays help text.
Retrieves the remote-path and stores it on the local machine. If the local path name is not specified, it is given the same name it has on the remote machine. If the -P flag is specified, then the file's full permission and access time are copied too.
Displays local directory listing of either path or current directory if path is not specified.
Creates local directory specified by path.
Prints local working directory.
Displays remote directory listing of either path or current directory if path is not specified.
Sets local umask to umask.
Creates remote directory specified by path.
Uploads local-path and stores it on the remote machine. If the remote path name is not specified, it is given the same name it has on the local machine. If the -P flag is specified, then the file's full permission and access time are copied too.
Displays remote working directory.
Renames remote file from oldpath to newpath.
Removes remote directory specified by path.
Deletes remote file specified by path.
Executes command in local shell.
Escapes to local shell.
Synonym for help.
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|
To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed location.