{
    "content": [
        {
            "type": "text",
            "text": "# sftp (man)\n\n## NAME\n\nsftp — OpenSSH secure file transfer\n\n## SYNOPSIS\n\nsftp  [-46AaCfNpqrv]  [-B  buffersize]  [-b  batchfile] [-c cipher] [-D sftpservercommand]\n[-F sshconfig] [-i identityfile] [-J destination] [-l limit] [-o sshoption] [-P port]\n[-R numrequests] [-S program] [-s subsystem | sftpserver] [-X sftpoption] destination\n\n## DESCRIPTION\n\nsftp is a file transfer program, similar to ftp(1), which performs all operations over an en‐\ncrypted ssh(1) transport.  It may also use many features of ssh, such as public key authenti‐\ncation and compression.\n\n## TLDR\n\n> Secure File Transfer Program.\n\n- Connect to a remote server and enter an interactive command mode:\n  `sftp {{remote_user}}@{{remote_host}}`\n- Connect using an alternate port:\n  `sftp -P {{remote_port}} {{remote_user}}@{{remote_host}}`\n- Connect using a predefined host (in `~/.ssh/config`):\n  `sftp {{host}}`\n- [Interactive] Transfer remote file to the local system:\n  `get {{path/to/remote_file}}`\n- [Interactive] Transfer local file to the remote system:\n  `put {{path/to/local_file}}`\n- [Interactive] Transfer remote directory to the local system recursively (works with `put` too):\n  `get -R {{path/to/remote_directory}}`\n- [Interactive] Get list of files on local machine:\n  `lls`\n- [Interactive] Get a list of files on the remote machine:\n  `ls`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (25 subsections)\n- **INTERACTIVE COMMANDS** (2 subsections)\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "sftp",
        "section": "",
        "mode": "man",
        "summary": "sftp — OpenSSH secure file transfer",
        "synopsis": "sftp  [-46AaCfNpqrv]  [-B  buffersize]  [-b  batchfile] [-c cipher] [-D sftpservercommand]\n[-F sshconfig] [-i identityfile] [-J destination] [-l limit] [-o sshoption] [-P port]\n[-R numrequests] [-S program] [-s subsystem | sftpserver] [-X sftpoption] destination",
        "tldr_summary": "Secure File Transfer Program.",
        "tldr_examples": [
            {
                "description": "Connect to a remote server and enter an interactive command mode",
                "command": "sftp {{remote_user}}@{{remote_host}}"
            },
            {
                "description": "Connect using an alternate port",
                "command": "sftp -P {{remote_port}} {{remote_user}}@{{remote_host}}"
            },
            {
                "description": "Connect using a predefined host (in `~/.ssh/config`)",
                "command": "sftp {{host}}"
            },
            {
                "description": "[Interactive] Transfer remote file to the local system",
                "command": "get {{path/to/remote_file}}"
            },
            {
                "description": "[Interactive] Transfer local file to the remote system",
                "command": "put {{path/to/local_file}}"
            },
            {
                "description": "[Interactive] Transfer remote directory to the local system recursively (works with `put` too)",
                "command": "get -R {{path/to/remote_directory}}"
            },
            {
                "description": "[Interactive] Get list of files on local machine",
                "command": "lls"
            },
            {
                "description": "[Interactive] Get a list of files on the remote machine",
                "command": "ls"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-4",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-6",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-A",
                "long": null,
                "arg": null,
                "description": "ward an authentication agent."
            },
            {
                "flag": "-a",
                "long": null,
                "arg": null,
                "description": "complete copies of files. If the partial contents differ from those being trans‐ ferred, then the resultant file is likely to be corrupt."
            },
            {
                "flag": "-B",
                "long": null,
                "arg": null,
                "description": "Specify the size of the buffer that sftp uses when transferring files. Larger buffers require fewer round trips at the cost of higher memory consumption. The de‐ fault is 32768 bytes."
            },
            {
                "flag": "-b",
                "long": null,
                "arg": null,
                "description": "Batch mode reads a series of commands from an input batchfile instead of stdin. Since it lacks user interaction, it should be used in conjunction with non-interac‐ tive authentication to obviate the need to enter a password at connection time (see sshd(8) and ssh-keygen(1) for details). A batchfile of ‘-’ may be used to indicate standard input. sftp will abort if any of the following commands fail: get, put, reget, reput, rename, ln, rm, mkdir, chdir, ls, lchdir, copy, cp, chmod, chown, chgrp, lpwd, df, symlink, and lmkdir. Termination on error can be suppressed on a command by command basis by prefixing the command with a ‘-’ character (for example, -rm /tmp/blah*). Echo of the command may be suppressed by prefixing the command with a ‘@’ character. These two prefixes may be combined in any order, for example -@ls /bsd."
            },
            {
                "flag": "-C",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": "Selects the cipher to use for encrypting the data transfers. This option is directly passed to ssh(1)."
            },
            {
                "flag": "-D",
                "long": null,
                "arg": null,
                "description": "Connect directly to a local sftp server (rather than via ssh(1)). A command and ar‐ guments may be specified, for example \"/path/sftp-server -el debug3\". This option may be useful in debugging the client and server."
            },
            {
                "flag": "-F",
                "long": null,
                "arg": null,
                "description": "Specifies an alternative per-user configuration file for ssh(1). This option is di‐ rectly passed to ssh(1)."
            },
            {
                "flag": "-f",
                "long": null,
                "arg": null,
                "description": "files, this feature is only enabled if the server implements the \"fsync@openssh.com\" extension."
            },
            {
                "flag": "-i",
                "long": null,
                "arg": null,
                "description": "Selects the file from which the identity (private key) for public key authentication is read. This option is directly passed to ssh(1)."
            },
            {
                "flag": "-J",
                "long": null,
                "arg": null,
                "description": "Connect to the target host by first making an sftp connection to the jump host de‐ scribed by destination and then establishing a TCP forwarding to the ultimate desti‐ nation from there. Multiple jump hops may be specified separated by comma charac‐ ters. This is a shortcut to specify a ProxyJump configuration directive. This op‐ tion is directly passed to ssh(1)."
            },
            {
                "flag": "-l",
                "long": null,
                "arg": null,
                "description": "Limits the used bandwidth, specified in Kbit/s."
            },
            {
                "flag": "-b",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-o",
                "long": null,
                "arg": null,
                "description": "Can be used to pass options to ssh in the format used in sshconfig(5). This is use‐ ful for specifying options for which there is no separate sftp command-line flag. For example, to specify an alternate port use: sftp -oPort=24. For full details of the options listed below, and their possible values, see sshconfig(5). AddressFamily BatchMode BindAddress BindInterface CanonicalDomains CanonicalizeFallbackLocal CanonicalizeHostname CanonicalizeMaxDots CanonicalizePermittedCNAMEs CASignatureAlgorithms CertificateFile CheckHostIP Ciphers Compression ConnectionAttempts ConnectTimeout ControlMaster ControlPath ControlPersist GlobalKnownHostsFile GSSAPIAuthentication GSSAPIDelegateCredentials HashKnownHosts Host HostbasedAcceptedAlgorithms HostbasedAuthentication HostKeyAlgorithms HostKeyAlias Hostname IdentitiesOnly IdentityAgent IdentityFile IPQoS KbdInteractiveAuthentication KbdInteractiveDevices KexAlgorithms KnownHostsCommand LogLevel MACs NoHostAuthenticationForLocalhost NumberOfPasswordPrompts PasswordAuthentication PKCS11Provider Port PreferredAuthentications ProxyCommand ProxyJump PubkeyAcceptedAlgorithms PubkeyAuthentication RekeyLimit RequiredRSASize SendEnv ServerAliveInterval ServerAliveCountMax SetEnv StrictHostKeyChecking TCPKeepAlive UpdateHostKeys User UserKnownHostsFile VerifyHostKeyDNS"
            },
            {
                "flag": "-P",
                "long": null,
                "arg": null,
                "description": "Specifies the port to connect to on the remote host."
            },
            {
                "flag": "-p",
                "long": null,
                "arg": null,
                "description": "ferred."
            },
            {
                "flag": "-q",
                "long": null,
                "arg": null,
                "description": "from ssh(1)."
            },
            {
                "flag": "-R",
                "long": null,
                "arg": null,
                "description": "Specify how many requests may be outstanding at any one time. Increasing this may slightly improve file transfer speed but will increase memory usage. The default is 64 outstanding requests."
            },
            {
                "flag": "-r",
                "long": null,
                "arg": null,
                "description": "does not follow symbolic links encountered in the tree traversal."
            },
            {
                "flag": "-S",
                "long": null,
                "arg": null,
                "description": "Name of the program to use for the encrypted connection. The program must understand ssh(1) options."
            },
            {
                "flag": "-s",
                "long": null,
                "arg": null,
                "description": "Specifies the SSH2 subsystem or the path for an sftp server on the remote host. A path is useful when the remote sshd(8) does not have an sftp subsystem configured."
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-X",
                "long": null,
                "arg": null,
                "description": "Specify an option that controls aspects of SFTP protocol behaviour. The valid op‐ tions are: nrequests=value Controls how many concurrent SFTP read or write requests may be in progress at any point in time during a download or upload. By default 64 requests may be active concurrently. buffer=value Controls the maximum buffer size for a single SFTP read/write operation used during download or upload. By default a 32KB buffer is used."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "ftp",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ftp/1/json"
            },
            {
                "name": "ls",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ls/1/json"
            },
            {
                "name": "scp",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/scp/1/json"
            },
            {
                "name": "ssh",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ssh/1/json"
            },
            {
                "name": "ssh-add",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ssh-add/1/json"
            },
            {
                "name": "ssh-keygen",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ssh-keygen/1/json"
            },
            {
                "name": "sshconfig",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/sshconfig/5/json"
            },
            {
                "name": "glob",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/glob/7/json"
            },
            {
                "name": "sftp-server",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/sftp-server/8/json"
            },
            {
                "name": "sshd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/sshd/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 21,
                "subsections": [
                    {
                        "name": "-4",
                        "lines": 1,
                        "flag": "-4"
                    },
                    {
                        "name": "-6",
                        "lines": 1,
                        "flag": "-6"
                    },
                    {
                        "name": "-A",
                        "lines": 2,
                        "flag": "-A"
                    },
                    {
                        "name": "-a",
                        "lines": 3,
                        "flag": "-a"
                    },
                    {
                        "name": "-B _",
                        "lines": 4,
                        "flag": "-B"
                    },
                    {
                        "name": "-b _",
                        "lines": 14,
                        "flag": "-b"
                    },
                    {
                        "name": "-C       -C",
                        "lines": 1,
                        "flag": "-C"
                    },
                    {
                        "name": "-c _",
                        "lines": 3,
                        "flag": "-c"
                    },
                    {
                        "name": "-D _",
                        "lines": 4,
                        "flag": "-D"
                    },
                    {
                        "name": "-F _",
                        "lines": 3,
                        "flag": "-F"
                    },
                    {
                        "name": "-f",
                        "lines": 3,
                        "flag": "-f"
                    },
                    {
                        "name": "-i _",
                        "lines": 3,
                        "flag": "-i"
                    },
                    {
                        "name": "-J _",
                        "lines": 6,
                        "flag": "-J"
                    },
                    {
                        "name": "-l _",
                        "lines": 2,
                        "flag": "-l"
                    },
                    {
                        "name": "-N       -b",
                        "lines": 1,
                        "flag": "-b"
                    },
                    {
                        "name": "-o _",
                        "lines": 67,
                        "flag": "-o"
                    },
                    {
                        "name": "-P _",
                        "lines": 2,
                        "flag": "-P"
                    },
                    {
                        "name": "-p",
                        "lines": 2,
                        "flag": "-p"
                    },
                    {
                        "name": "-q",
                        "lines": 2,
                        "flag": "-q"
                    },
                    {
                        "name": "-R _",
                        "lines": 4,
                        "flag": "-R"
                    },
                    {
                        "name": "-r",
                        "lines": 2,
                        "flag": "-r"
                    },
                    {
                        "name": "-S _",
                        "lines": 3,
                        "flag": "-S"
                    },
                    {
                        "name": "-s _",
                        "lines": 3,
                        "flag": "-s"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    },
                    {
                        "name": "-X _",
                        "lines": 12,
                        "flag": "-X"
                    }
                ]
            },
            {
                "name": "INTERACTIVE COMMANDS",
                "lines": 122,
                "subsections": [
                    {
                        "name": "progress",
                        "lines": 45
                    },
                    {
                        "name": "version",
                        "lines": 9
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "sftp — OpenSSH secure file transfer\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "sftp  [-46AaCfNpqrv]  [-B  buffersize]  [-b  batchfile] [-c cipher] [-D sftpservercommand]\n[-F sshconfig] [-i identityfile] [-J destination] [-l limit] [-o sshoption] [-P port]\n[-R numrequests] [-S program] [-s subsystem | sftpserver] [-X sftpoption] destination\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "sftp is a file transfer program, similar to ftp(1), which performs all operations over an en‐\ncrypted ssh(1) transport.  It may also use many features of ssh, such as public key authenti‐\ncation and compression.\n\nThe destination may be specified either as  [user@]host[:path]  or  as  a  URI  in  the  form\nsftp://[user@]host[:port][/path].\n\nIf  the destination includes a path and it is not a directory, sftp will retrieve files auto‐\nmatically if a non-interactive authentication method is used; otherwise it will do  so  after\nsuccessful interactive authentication.\n\nIf  no  path  is  specified, or if the path is a directory, sftp will log in to the specified\nhost and enter interactive command mode, changing to the remote directory if one  was  speci‐\nfied.  An optional trailing slash can be used to force the path to be interpreted as a direc‐\ntory.\n\nSince  the  destination formats use colon characters to delimit host names from path names or\nport numbers, IPv6 addresses must be enclosed in square brackets to avoid ambiguity.\n\nThe options are as follows:\n",
                "subsections": [
                    {
                        "name": "-4",
                        "content": "",
                        "flag": "-4"
                    },
                    {
                        "name": "-6",
                        "content": "",
                        "flag": "-6"
                    },
                    {
                        "name": "-A",
                        "content": "ward an authentication agent.\n",
                        "flag": "-A"
                    },
                    {
                        "name": "-a",
                        "content": "complete  copies  of  files.   If the partial contents differ from those being trans‐\nferred, then the resultant file is likely to be corrupt.\n",
                        "flag": "-a"
                    },
                    {
                        "name": "-B _",
                        "content": "Specify the size of the buffer  that  sftp  uses  when  transferring  files.   Larger\nbuffers  require fewer round trips at the cost of higher memory consumption.  The de‐\nfault is 32768 bytes.\n",
                        "flag": "-B"
                    },
                    {
                        "name": "-b _",
                        "content": "Batch mode reads a series of commands from  an  input  batchfile  instead  of  stdin.\nSince  it  lacks user interaction, it should be used in conjunction with non-interac‐\ntive authentication to obviate the need to enter a password at connection  time  (see\nsshd(8) and ssh-keygen(1) for details).\n\nA batchfile of ‘-’ may be used to indicate standard input.  sftp will abort if any of\nthe  following  commands  fail: get, put, reget, reput, rename, ln, rm, mkdir, chdir,\nls, lchdir, copy, cp, chmod, chown, chgrp, lpwd, df, symlink, and lmkdir.\n\nTermination on error can be suppressed on a command by command basis by prefixing the\ncommand with a ‘-’ character (for example, -rm /tmp/blah*).  Echo of the command  may\nbe  suppressed by prefixing the command with a ‘@’ character.  These two prefixes may\nbe combined in any order, for example -@ls /bsd.\n",
                        "flag": "-b"
                    },
                    {
                        "name": "-C       -C",
                        "content": "",
                        "flag": "-C"
                    },
                    {
                        "name": "-c _",
                        "content": "Selects the cipher to use for encrypting the data transfers.  This option is directly\npassed to ssh(1).\n",
                        "flag": "-c"
                    },
                    {
                        "name": "-D _",
                        "content": "Connect directly to a local sftp server (rather than via ssh(1)).  A command and  ar‐\nguments  may  be  specified, for example \"/path/sftp-server -el debug3\".  This option\nmay be useful in debugging the client and server.\n",
                        "flag": "-D"
                    },
                    {
                        "name": "-F _",
                        "content": "Specifies an alternative per-user configuration file for ssh(1).  This option is  di‐\nrectly passed to ssh(1).\n",
                        "flag": "-F"
                    },
                    {
                        "name": "-f",
                        "content": "files, this feature is only enabled if the server implements the  \"fsync@openssh.com\"\nextension.\n",
                        "flag": "-f"
                    },
                    {
                        "name": "-i _",
                        "content": "Selects  the file from which the identity (private key) for public key authentication\nis read.  This option is directly passed to ssh(1).\n",
                        "flag": "-i"
                    },
                    {
                        "name": "-J _",
                        "content": "Connect to the target host by first making an sftp connection to the  jump  host  de‐\nscribed  by destination and then establishing a TCP forwarding to the ultimate desti‐\nnation from there.  Multiple jump hops may be specified separated  by  comma  charac‐\nters.   This  is a shortcut to specify a ProxyJump configuration directive.  This op‐\ntion is directly passed to ssh(1).\n",
                        "flag": "-J"
                    },
                    {
                        "name": "-l _",
                        "content": "Limits the used bandwidth, specified in Kbit/s.\n",
                        "flag": "-l"
                    },
                    {
                        "name": "-N       -b",
                        "content": "",
                        "flag": "-b"
                    },
                    {
                        "name": "-o _",
                        "content": "Can be used to pass options to ssh in the format used in sshconfig(5).  This is use‐\nful for specifying options for which there is no  separate  sftp  command-line  flag.\nFor  example,  to specify an alternate port use: sftp -oPort=24.  For full details of\nthe options listed below, and their possible values, see sshconfig(5).\n\nAddressFamily\nBatchMode\nBindAddress\nBindInterface\nCanonicalDomains\nCanonicalizeFallbackLocal\nCanonicalizeHostname\nCanonicalizeMaxDots\nCanonicalizePermittedCNAMEs\nCASignatureAlgorithms\nCertificateFile\nCheckHostIP\nCiphers\nCompression\nConnectionAttempts\nConnectTimeout\nControlMaster\nControlPath\nControlPersist\nGlobalKnownHostsFile\nGSSAPIAuthentication\nGSSAPIDelegateCredentials\nHashKnownHosts\nHost\nHostbasedAcceptedAlgorithms\nHostbasedAuthentication\nHostKeyAlgorithms\nHostKeyAlias\nHostname\nIdentitiesOnly\nIdentityAgent\nIdentityFile\nIPQoS\nKbdInteractiveAuthentication\nKbdInteractiveDevices\nKexAlgorithms\nKnownHostsCommand\nLogLevel\nMACs\nNoHostAuthenticationForLocalhost\nNumberOfPasswordPrompts\nPasswordAuthentication\nPKCS11Provider\nPort\nPreferredAuthentications\nProxyCommand\nProxyJump\nPubkeyAcceptedAlgorithms\nPubkeyAuthentication\nRekeyLimit\nRequiredRSASize\nSendEnv\nServerAliveInterval\nServerAliveCountMax\nSetEnv\nStrictHostKeyChecking\nTCPKeepAlive\nUpdateHostKeys\nUser\nUserKnownHostsFile\nVerifyHostKeyDNS\n",
                        "flag": "-o"
                    },
                    {
                        "name": "-P _",
                        "content": "Specifies the port to connect to on the remote host.\n",
                        "flag": "-P"
                    },
                    {
                        "name": "-p",
                        "content": "ferred.\n",
                        "flag": "-p"
                    },
                    {
                        "name": "-q",
                        "content": "from ssh(1).\n",
                        "flag": "-q"
                    },
                    {
                        "name": "-R _",
                        "content": "Specify how many requests may be outstanding at any one time.   Increasing  this  may\nslightly  improve file transfer speed but will increase memory usage.  The default is\n64 outstanding requests.\n",
                        "flag": "-R"
                    },
                    {
                        "name": "-r",
                        "content": "does not follow symbolic links encountered in the tree traversal.\n",
                        "flag": "-r"
                    },
                    {
                        "name": "-S _",
                        "content": "Name of the program to use for the encrypted connection.  The program must understand\nssh(1) options.\n",
                        "flag": "-S"
                    },
                    {
                        "name": "-s _",
                        "content": "Specifies  the  SSH2  subsystem or the path for an sftp server on the remote host.  A\npath is useful when the remote sshd(8) does not have an sftp subsystem configured.\n",
                        "flag": "-s"
                    },
                    {
                        "name": "-v",
                        "content": "",
                        "flag": "-v"
                    },
                    {
                        "name": "-X _",
                        "content": "Specify an option that controls aspects of SFTP protocol behaviour.   The  valid  op‐\ntions are:\n\nnrequests=value\nControls  how  many concurrent SFTP read or write requests may be in progress\nat any point in time during a download or upload.  By default 64 requests may\nbe active concurrently.\n\nbuffer=value\nControls the maximum buffer size for a single SFTP read/write operation  used\nduring download or upload.  By default a 32KB buffer is used.\n",
                        "flag": "-X"
                    }
                ]
            },
            "INTERACTIVE COMMANDS": {
                "content": "Once  in  interactive  mode,  sftp  understands a set of commands similar to those of ftp(1).\nCommands are case insensitive.  Pathnames that contain spaces must  be  enclosed  in  quotes.\nAny  special characters contained within pathnames that are recognized by glob(3) must be es‐\ncaped with backslashes (‘\\’).\n\nbye     Quit sftp.\n\ncd [path]\nChange remote directory to path.  If path is not specified, then change directory  to\nthe one the session started in.\n\nchgrp [-h] grp path\nChange  group of file path to grp.  path may contain glob(7) characters and may match\nmultiple files.  grp must be a numeric GID.\n\nIf the -h flag is specified, then symlinks will not be followed.  Note that  this  is\nonly supported by servers that implement the \"lsetstat@openssh.com\" extension.\n\nchmod [-h] mode path\nChange permissions of file path to mode.  path may contain glob(7) characters and may\nmatch multiple files.\n\nIf  the  -h flag is specified, then symlinks will not be followed.  Note that this is\nonly supported by servers that implement the \"lsetstat@openssh.com\" extension.\n\nchown [-h] own path\nChange owner of file path to own.  path may contain glob(7) characters and may  match\nmultiple files.  own must be a numeric UID.\n\nIf  the  -h flag is specified, then symlinks will not be followed.  Note that this is\nonly supported by servers that implement the \"lsetstat@openssh.com\" extension.\n\ncopy oldpath newpath\nCopy remote file from oldpath to newpath.\n\nNote that this is only supported by servers that implement the \"copy-data\" extension.\n\ncp oldpath newpath\nAlias to copy command.\n\ndf [-hi] [path]\nDisplay usage information for the filesystem holding the current directory  (or  path\nif  specified).   If  the -h flag is specified, the capacity information will be dis‐\nplayed using \"human-readable\" suffixes.  The -i flag requests display of inode infor‐\nmation in addition to capacity  information.   This  command  is  only  supported  on\nservers that implement the “statvfs@openssh.com” extension.\n\nexit    Quit sftp.\n\nget [-afpR] remote-path [local-path]\nRetrieve  the  remote-path and store it on the local machine.  If the local path name\nis not specified,  it  is  given  the  same  name  it  has  on  the  remote  machine.\nremote-path  may contain glob(7) characters and may match multiple files.  If it does\nand local-path is specified, then local-path must specify a directory.\n\nIf the -a flag is specified, then attempt to resume  partial  transfers  of  existing\nfiles.   Note that resumption assumes that any partial copy of the local file matches\nthe remote copy.  If the remote file contents differ from the partial local copy then\nthe resultant file is likely to be corrupt.\n\nIf the -f flag is specified, then fsync(2) will be called after the file transfer has\ncompleted to flush the file to disk.\n\nIf the -p flag is specified, then full file permissions and access times  are  copied\ntoo.\n\nIf  the  -R flag is specified then directories will be copied recursively.  Note that\nsftp does not follow symbolic links when performing recursive transfers.\n\nhelp    Display help text.\n\nlcd [path]\nChange local directory to path.  If path is not specified, then change  directory  to\nthe local user's home directory.\n\nlls [ls-options [path]]\nDisplay  local  directory  listing of either path or current directory if path is not\nspecified.  ls-options may contain any flags supported by the  local  system's  ls(1)\ncommand.  path may contain glob(7) characters and may match multiple files.\n\nlmkdir path\nCreate local directory specified by path.\n\nln [-s] oldpath newpath\nCreate  a link from oldpath to newpath.  If the -s flag is specified the created link\nis a symbolic link, otherwise it is a hard link.\n\nlpwd    Print local working directory.\n\nls [-1afhlnrSt] [path]\nDisplay a remote directory listing of either path or the current directory if path is\nnot specified.  path may contain glob(7) characters and may match multiple files.\n\nThe following flags are recognized and alter the behaviour of ls accordingly:\n\n-1      Produce single columnar output.\n\n-a      List files beginning with a dot (‘.’).\n\n-f      Do not sort the listing.  The default sort order is lexicographical.\n\n-h      When used with a long format  option,  use  unit  suffixes:  Byte,  Kilobyte,\nMegabyte,  Gigabyte,  Terabyte,  Petabyte, and Exabyte in order to reduce the\nnumber of digits to four or fewer  using  powers  of  2  for  sizes  (K=1024,\nM=1048576, etc.).\n\n-l      Display additional details including permissions and ownership information.\n\n-n      Produce a long listing with user and group information presented numerically.\n\n-r      Reverse the sort order of the listing.\n\n-S      Sort the listing by file size.\n\n-t      Sort the listing by last modification time.\n\nlumask umask\nSet local umask to umask.\n\nmkdir path\nCreate remote directory specified by path.\n",
                "subsections": [
                    {
                        "name": "progress",
                        "content": "Toggle display of progress meter.\n\nput [-afpR] local-path [remote-path]\nUpload local-path and store it on the remote machine.  If the remote path name is not\nspecified,  it  is  given  the same name it has on the local machine.  local-path may\ncontain glob(7) characters and may match multiple files.  If it does and  remote-path\nis specified, then remote-path must specify a directory.\n\nIf  the  -a  flag  is specified, then attempt to resume partial transfers of existing\nfiles.  Note that resumption assumes that any partial copy of the remote file matches\nthe local copy.  If the local file contents differ from the remote  local  copy  then\nthe resultant file is likely to be corrupt.\n\nIf  the  -f  flag  is  specified,  then  a request will be sent to the server to call\nfsync(2) after the file has been transferred.  Note that this is  only  supported  by\nservers that implement the \"fsync@openssh.com\" extension.\n\nIf  the  -p flag is specified, then full file permissions and access times are copied\ntoo.\n\nIf the -R flag is specified then directories will be copied recursively.   Note  that\nsftp does not follow symbolic links when performing recursive transfers.\n\npwd     Display remote working directory.\n\nquit    Quit sftp.\n\nreget [-fpR] remote-path [local-path]\nResume download of remote-path.  Equivalent to get with the -a flag set.\n\nreput [-fpR] local-path [remote-path]\nResume upload of local-path.  Equivalent to put with the -a flag set.\n\nrename oldpath newpath\nRename remote file from oldpath to newpath.\n\nrm path\nDelete remote file specified by path.\n\nrmdir path\nRemove remote directory specified by path.\n\nsymlink oldpath newpath\nCreate a symbolic link from oldpath to newpath.\n"
                    },
                    {
                        "name": "version",
                        "content": "Display the sftp protocol version.\n\n!command\nExecute command in local shell.\n\n!       Escape to local shell.\n\n?       Synonym for help.\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "ftp(1),   ls(1),   scp(1),   ssh(1),   ssh-add(1),   ssh-keygen(1),  sshconfig(5),  glob(7),\nsftp-server(8), sshd(8)\n\nT. Ylonen and S. Lehtinen,  SSH  File  Transfer  Protocol,  draft-ietf-secsh-filexfer-00.txt,\nJanuary 2001, work in progress material.\n\nDebian                                    December 16, 2022                                  SFTP(1)",
                "subsections": []
            }
        }
    }
}