SSH Communications Security
Index
SSH Home page
Previous Next Up [Contents] [Index]

    Introduction >>
    Configuration >>
    Connecting >>
    Terminal Window >>
    File Transfer >>
    Toolbar Reference >>
    Menu Reference >>
    Advanced Information >>
    Troubleshooting >>
    Appendices >>
        SSH2
        SCP2 >>
        SFTP2 >>
            SFTP2 Commands
            SFTP2 Command Interpretation
        SSH-keygen2
        Frequently Asked Questions >>

SFTP2 Commands

When SFTP2 is ready to accept commands, it will display a prompt (sftp>). The user can then enter any of the following commands:

  • open [host name]

    Tries to connect to the specified host.

  • localopen

    Opens a local connection. This is intended for debugging and testing.

  • close

    Closes the current session.

  • quit

    Quits the application.

  • cd [directory]

    Changes the current remote working directory.

  • lcd [directory]

    Changes the current local working directory.

  • pwd

    Prints the name of the current remote working directory.

  • lpwd

    Prints the name of the current local working directory.

  • ls [-R] [-l] [file ...]

    Lists the names of the files on the remote server. For directories, the contents of the directory are listed.

    When the -R option is specified, the directory trees are listed recursively. (By default, the subdirectories of the argument directories are not visited.)

    When the -l option is specified, file sizes, modification times, permissions and owners (as supported by the file system) are also shown.

    When no arguments are given, it is assumed that the contents of the current directory are being listed. Currently the options -R and - l are mutually incompatible.

  • lls [-R] [-l] [file ...]

    The same as ls, but operates on local files.

  • get [file ...]

    Transfers the specified files from the remote end to the local end. Directories are recursively copied with their contents.

  • mget [file ...]

    Synonymous to get.

  • put [file ...]

    Transfers the specified files from the local end to the remote end. Directories are recursively copied with their contents.

  • mput [file ...]

    Synonymous to put.

  • rename [source] [target]

    Renames the file source to target.

  • lrename [source] [target]

    Same as rename, but operates on local files.

  • rm [file]

    Tries to delete the specified file.

  • lrm [file]

    The same as rm, but operates on local files.

  • mkdir [directory]

    Tries to create the specified directory.

  • lmkdir [directory]

    The same as mkdir, but operates on local files.

  • rmdir [directory]

    Tries to delete the specified directory.

  • lrmdir [directory]

    The same as rmdir, but operates on local files.

  • help [topic]

    If topic is not given, lists the available topics. If topic is given, outputs the available online help on the topic.

Previous Next Up [Contents] [Index]


[ Contact Information | Support | Feedback | SSH Home Page | SSH Products ]

Copyright © 2001 SSH Communications Security Corp
All rights reserved.
Copyright Notice