[BACK]Return to sftp.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Annotation of src/usr.bin/ssh/sftp.1, Revision 1.121

1.121   ! schwarze    1: .\" $OpenBSD: sftp.1,v 1.120 2018/09/20 06:58:48 jmc Exp $
1.1       djm         2: .\"
1.9       deraadt     3: .\" Copyright (c) 2001 Damien Miller.  All rights reserved.
1.1       djm         4: .\"
                      5: .\" Redistribution and use in source and binary forms, with or without
                      6: .\" modification, are permitted provided that the following conditions
                      7: .\" are met:
                      8: .\" 1. Redistributions of source code must retain the above copyright
                      9: .\"    notice, this list of conditions and the following disclaimer.
                     10: .\" 2. Redistributions in binary form must reproduce the above copyright
                     11: .\"    notice, this list of conditions and the following disclaimer in the
                     12: .\"    documentation and/or other materials provided with the distribution.
                     13: .\"
                     14: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     15: .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     16: .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
                     17: .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
                     18: .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                     19: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     20: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     21: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     22: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     23: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     24: .\"
1.121   ! schwarze   25: .Dd $Mdocdate: September 20 2018 $
1.1       djm        26: .Dt SFTP 1
                     27: .Os
                     28: .Sh NAME
                     29: .Nm sftp
1.44      jmc        30: .Nd secure file transfer program
1.1       djm        31: .Sh SYNOPSIS
1.43      jmc        32: .Nm sftp
1.106     djm        33: .Op Fl 46aCfpqrv
1.46      jmc        34: .Op Fl B Ar buffer_size
1.29      markus     35: .Op Fl b Ar batchfile
1.70      djm        36: .Op Fl c Ar cipher
1.72      djm        37: .Op Fl D Ar sftp_server_path
1.46      jmc        38: .Op Fl F Ar ssh_config
1.73      jmc        39: .Op Fl i Ar identity_file
1.85      djm        40: .Op Fl l Ar limit
1.29      markus     41: .Op Fl o Ar ssh_option
1.72      djm        42: .Op Fl P Ar port
1.30      djm        43: .Op Fl R Ar num_requests
1.26      stevesk    44: .Op Fl S Ar program
1.46      jmc        45: .Op Fl s Ar subsystem | sftp_server
1.111     millert    46: .Ar destination
1.1       djm        47: .Sh DESCRIPTION
                     48: .Nm
1.111     millert    49: is a file transfer program, similar to
1.1       djm        50: .Xr ftp 1 ,
                     51: which performs all operations over an encrypted
                     52: .Xr ssh 1
                     53: transport.
                     54: It may also use many features of ssh, such as public key authentication and
                     55: compression.
1.111     millert    56: .Pp
                     57: The
                     58: .Ar destination
                     59: may be specified either as
1.112     jmc        60: .Sm off
                     61: .Oo user @ Oc host Op : path
                     62: .Sm on
                     63: or as a URI in the form
                     64: .Sm off
                     65: .No sftp:// Oo user @ Oc host Oo : port Oc Op / path .
                     66: .Sm on
1.111     millert    67: .Pp
                     68: If the
                     69: .Ar destination
                     70: includes a
                     71: .Ar path
                     72: and it is not a directory,
1.1       djm        73: .Nm
1.111     millert    74: will retrieve files automatically if a non-interactive
1.18      stevesk    75: authentication method is used; otherwise it will do so after
                     76: successful interactive authentication.
1.15      mouring    77: .Pp
1.111     millert    78: If no
                     79: .Ar path
                     80: is specified, or if the
                     81: .Ar path
                     82: is a directory,
1.60      jaredy     83: .Nm
1.111     millert    84: will log in to the specified
                     85: .Ar host
                     86: and enter interactive command mode, changing to the remote directory
                     87: if one was specified.
                     88: An optional trailing slash can be used to force the
                     89: .Ar path
                     90: to be interpreted as a directory.
1.1       djm        91: .Pp
1.111     millert    92: Since the destination formats use colon characters to delimit host
                     93: names from path names or port numbers, IPv6 addresses must be
                     94: enclosed in square brackets to avoid ambiguity.
1.89      djm        95: .Pp
1.1       djm        96: The options are as follows:
                     97: .Bl -tag -width Ds
1.70      djm        98: .It Fl 4
                     99: Forces
                    100: .Nm
                    101: to use IPv4 addresses only.
                    102: .It Fl 6
                    103: Forces
                    104: .Nm
                    105: to use IPv6 addresses only.
1.94      jmc       106: .It Fl a
1.99      jmc       107: Attempt to continue interrupted transfers rather than overwriting
1.98      logan     108: existing partial or complete copies of files.
1.99      jmc       109: If the partial contents differ from those being transferred,
1.98      logan     110: then the resultant file is likely to be corrupt.
1.46      jmc       111: .It Fl B Ar buffer_size
                    112: Specify the size of the buffer that
                    113: .Nm
                    114: uses when transferring files.
                    115: Larger buffers require fewer round trips at the cost of higher
                    116: memory consumption.
                    117: The default is 32768 bytes.
1.10      deraadt   118: .It Fl b Ar batchfile
                    119: Batch mode reads a series of commands from an input
1.13      stevesk   120: .Ar batchfile
1.10      deraadt   121: instead of
1.13      stevesk   122: .Em stdin .
                    123: Since it lacks user interaction it should be used in conjunction with
1.111     millert   124: non-interactive authentication to obviate the need to enter a password
                    125: at connection time (see
                    126: .Xr sshd 8
                    127: and
                    128: .Xr ssh-keygen 1
                    129: for details).
1.50      djm       130: A
1.51      jmc       131: .Ar batchfile
                    132: of
                    133: .Sq \-
1.50      djm       134: may be used to indicate standard input.
1.13      stevesk   135: .Nm
1.21      itojun    136: will abort if any of the following
                    137: commands fail:
1.121   ! schwarze  138: .Ic get , put , reget , reput , rename , ln ,
1.41      jmc       139: .Ic rm , mkdir , chdir , ls ,
1.66      jmc       140: .Ic lchdir , chmod , chown ,
1.88      djm       141: .Ic chgrp , lpwd , df , symlink ,
1.10      deraadt   142: and
1.13      stevesk   143: .Ic lmkdir .
1.41      jmc       144: Termination on error can be suppressed on a command by command basis by
                    145: prefixing the command with a
1.51      jmc       146: .Sq \-
1.44      jmc       147: character (for example,
                    148: .Ic -rm /tmp/blah* ) .
1.71      jmc       149: .It Fl C
                    150: Enables compression (via ssh's
                    151: .Fl C
                    152: flag).
1.70      djm       153: .It Fl c Ar cipher
                    154: Selects the cipher to use for encrypting the data transfers.
                    155: This option is directly passed to
                    156: .Xr ssh 1 .
1.72      djm       157: .It Fl D Ar sftp_server_path
                    158: Connect directly to a local sftp server
                    159: (rather than via
                    160: .Xr ssh 1 ) .
                    161: This option may be useful in debugging the client and server.
1.46      jmc       162: .It Fl F Ar ssh_config
                    163: Specifies an alternative
                    164: per-user configuration file for
                    165: .Xr ssh 1 .
                    166: This option is directly passed to
                    167: .Xr ssh 1 .
1.95      djm       168: .It Fl f
                    169: Requests that files be flushed to disk immediately after transfer.
                    170: When uploading files, this feature is only enabled if the server
                    171: implements the "fsync@openssh.com" extension.
1.70      djm       172: .It Fl i Ar identity_file
                    173: Selects the file from which the identity (private key) for public key
                    174: authentication is read.
                    175: This option is directly passed to
                    176: .Xr ssh 1 .
1.85      djm       177: .It Fl l Ar limit
                    178: Limits the used bandwidth, specified in Kbit/s.
1.1       djm       179: .It Fl o Ar ssh_option
1.23      stevesk   180: Can be used to pass options to
                    181: .Nm ssh
1.35      stevesk   182: in the format used in
                    183: .Xr ssh_config 5 .
                    184: This is useful for specifying options
1.23      stevesk   185: for which there is no separate
                    186: .Nm sftp
1.44      jmc       187: command-line flag.
                    188: For example, to specify an alternate port use:
1.26      stevesk   189: .Ic sftp -oPort=24 .
1.46      jmc       190: For full details of the options listed below, and their possible values, see
                    191: .Xr ssh_config 5 .
                    192: .Pp
                    193: .Bl -tag -width Ds -offset indent -compact
                    194: .It AddressFamily
                    195: .It BatchMode
                    196: .It BindAddress
1.114     jmc       197: .It BindInterface
1.97      djm       198: .It CanonicalDomains
                    199: .It CanonicalizeFallbackLocal
                    200: .It CanonicalizeHostname
                    201: .It CanonicalizeMaxDots
                    202: .It CanonicalizePermittedCNAMEs
1.120     jmc       203: .It CASignatureAlgorithms
1.102     jmc       204: .It CertificateFile
1.46      jmc       205: .It ChallengeResponseAuthentication
                    206: .It CheckHostIP
                    207: .It Ciphers
                    208: .It Compression
1.110     naddy     209: .It ConnectionAttempts
1.54      dtucker   210: .It ConnectTimeout
1.55      djm       211: .It ControlMaster
                    212: .It ControlPath
1.91      djm       213: .It ControlPersist
1.46      jmc       214: .It GlobalKnownHostsFile
                    215: .It GSSAPIAuthentication
                    216: .It GSSAPIDelegateCredentials
1.61      jmc       217: .It HashKnownHosts
1.46      jmc       218: .It Host
                    219: .It HostbasedAuthentication
1.101     djm       220: .It HostbasedKeyTypes
1.46      jmc       221: .It HostKeyAlgorithms
                    222: .It HostKeyAlias
                    223: .It HostName
1.104     jmc       224: .It IdentitiesOnly
1.103     markus    225: .It IdentityAgent
1.46      jmc       226: .It IdentityFile
1.87      jmc       227: .It IPQoS
1.91      djm       228: .It KbdInteractiveAuthentication
1.58      djm       229: .It KbdInteractiveDevices
1.86      jmc       230: .It KexAlgorithms
1.46      jmc       231: .It LogLevel
                    232: .It MACs
                    233: .It NoHostAuthenticationForLocalhost
                    234: .It NumberOfPasswordPrompts
                    235: .It PasswordAuthentication
1.83      markus    236: .It PKCS11Provider
1.46      jmc       237: .It Port
                    238: .It PreferredAuthentications
                    239: .It ProxyCommand
1.105     jmc       240: .It ProxyJump
1.108     jmc       241: .It PubkeyAcceptedKeyTypes
1.46      jmc       242: .It PubkeyAuthentication
1.63      dtucker   243: .It RekeyLimit
1.53      jmc       244: .It SendEnv
1.49      markus    245: .It ServerAliveInterval
                    246: .It ServerAliveCountMax
1.116     jmc       247: .It SetEnv
1.46      jmc       248: .It StrictHostKeyChecking
1.48      markus    249: .It TCPKeepAlive
1.100     djm       250: .It UpdateHostKeys
1.46      jmc       251: .It User
                    252: .It UserKnownHostsFile
                    253: .It VerifyHostKeyDNS
                    254: .El
1.72      djm       255: .It Fl P Ar port
                    256: Specifies the port to connect to on the remote host.
1.74      djm       257: .It Fl p
                    258: Preserves modification times, access times, and modes from the
                    259: original files transferred.
1.70      djm       260: .It Fl q
                    261: Quiet mode: disables the progress meter as well as warning and
                    262: diagnostic messages from
                    263: .Xr ssh 1 .
1.30      djm       264: .It Fl R Ar num_requests
1.44      jmc       265: Specify how many requests may be outstanding at any one time.
                    266: Increasing this may slightly improve file transfer speed
                    267: but will increase memory usage.
1.67      djm       268: The default is 64 outstanding requests.
1.74      djm       269: .It Fl r
                    270: Recursively copy entire directories when uploading and downloading.
                    271: Note that
                    272: .Nm
                    273: does not follow symbolic links encountered in the tree traversal.
1.26      stevesk   274: .It Fl S Ar program
                    275: Name of the
                    276: .Ar program
                    277: to use for the encrypted connection.
                    278: The program must understand
                    279: .Xr ssh 1
                    280: options.
1.46      jmc       281: .It Fl s Ar subsystem | sftp_server
                    282: Specifies the SSH2 subsystem or the path for an sftp server
                    283: on the remote host.
1.109     jmc       284: A path is useful when the remote
1.46      jmc       285: .Xr sshd 8
                    286: does not have an sftp subsystem configured.
                    287: .It Fl v
                    288: Raise logging level.
                    289: This option is also passed to ssh.
1.1       djm       290: .El
                    291: .Sh INTERACTIVE COMMANDS
1.2       djm       292: Once in interactive mode,
                    293: .Nm
1.21      itojun    294: understands a set of commands similar to those of
1.1       djm       295: .Xr ftp 1 .
1.60      jaredy    296: Commands are case insensitive.
                    297: Pathnames that contain spaces must be enclosed in quotes.
                    298: Any special characters contained within pathnames that are recognized by
                    299: .Xr glob 3
                    300: must be escaped with backslashes
                    301: .Pq Sq \e .
                    302: .Bl -tag -width Ds
1.22      markus    303: .It Ic bye
1.44      jmc       304: Quit
                    305: .Nm sftp .
1.113     djm       306: .It Ic cd Op Ar path
1.21      itojun    307: Change remote directory to
1.3       deraadt   308: .Ar path .
1.113     djm       309: If
                    310: .Ar path
                    311: is not specified, then change directory to the one the session started in.
1.3       deraadt   312: .It Ic chgrp Ar grp Ar path
1.21      itojun    313: Change group of file
1.5       stevesk   314: .Ar path
                    315: to
1.1       djm       316: .Ar grp .
1.60      jaredy    317: .Ar path
                    318: may contain
1.118     kn        319: .Xr glob 7
1.60      jaredy    320: characters and may match multiple files.
1.1       djm       321: .Ar grp
1.5       stevesk   322: must be a numeric GID.
1.3       deraadt   323: .It Ic chmod Ar mode Ar path
1.21      itojun    324: Change permissions of file
1.5       stevesk   325: .Ar path
                    326: to
1.3       deraadt   327: .Ar mode .
1.60      jaredy    328: .Ar path
                    329: may contain
1.118     kn        330: .Xr glob 7
1.60      jaredy    331: characters and may match multiple files.
1.3       deraadt   332: .It Ic chown Ar own Ar path
1.21      itojun    333: Change owner of file
1.5       stevesk   334: .Ar path
                    335: to
1.1       djm       336: .Ar own .
1.60      jaredy    337: .Ar path
                    338: may contain
1.118     kn        339: .Xr glob 7
1.60      jaredy    340: characters and may match multiple files.
1.1       djm       341: .Ar own
                    342: must be a numeric UID.
1.65      djm       343: .It Xo Ic df
                    344: .Op Fl hi
                    345: .Op Ar path
                    346: .Xc
                    347: Display usage information for the filesystem holding the current directory
                    348: (or
                    349: .Ar path
                    350: if specified).
                    351: If the
                    352: .Fl h
                    353: flag is specified, the capacity information will be displayed using
                    354: "human-readable" suffixes.
                    355: The
                    356: .Fl i
                    357: flag requests display of inode information in addition to capacity information.
                    358: This command is only supported on servers that implement the
                    359: .Dq statvfs@openssh.com
                    360: extension.
1.11      deraadt   361: .It Ic exit
1.44      jmc       362: Quit
                    363: .Nm sftp .
1.7       djm       364: .It Xo Ic get
1.95      djm       365: .Op Fl afPpr
1.7       djm       366: .Ar remote-path
                    367: .Op Ar local-path
                    368: .Xc
1.1       djm       369: Retrieve the
1.5       stevesk   370: .Ar remote-path
1.1       djm       371: and store it on the local machine.
                    372: If the local
1.21      itojun    373: path name is not specified, it is given the same name it has on the
1.44      jmc       374: remote machine.
1.60      jaredy    375: .Ar remote-path
                    376: may contain
1.118     kn        377: .Xr glob 7
1.60      jaredy    378: characters and may match multiple files.
                    379: If it does and
                    380: .Ar local-path
                    381: is specified, then
                    382: .Ar local-path
                    383: must specify a directory.
1.74      djm       384: .Pp
1.92      djm       385: If the
                    386: .Fl a
                    387: flag is specified, then attempt to resume partial transfers of existing files.
                    388: Note that resumption assumes that any partial copy of the local file matches
                    389: the remote copy.
1.93      djm       390: If the remote file contents differ from the partial local copy then the
                    391: resultant file is likely to be corrupt.
1.92      djm       392: .Pp
1.95      djm       393: If the
                    394: .Fl f
                    395: flag is specified, then
                    396: .Xr fsync 2
1.96      jmc       397: will be called after the file transfer has completed to flush the file
1.95      djm       398: to disk.
                    399: .Pp
1.76      jmc       400: If either the
1.75      djm       401: .Fl P
1.74      djm       402: or
                    403: .Fl p
1.60      jaredy    404: flag is specified, then full file permissions and access times are
1.7       djm       405: copied too.
1.74      djm       406: .Pp
                    407: If the
                    408: .Fl r
                    409: flag is specified then directories will be copied recursively.
                    410: Note that
                    411: .Nm
                    412: does not follow symbolic links when performing recursive transfers.
1.11      deraadt   413: .It Ic help
                    414: Display help text.
1.113     djm       415: .It Ic lcd Op Ar path
1.46      jmc       416: Change local directory to
                    417: .Ar path .
1.113     djm       418: If
                    419: .Ar path
                    420: is not specified, then change directory to the local user's home directory.
1.3       deraadt   421: .It Ic lls Op Ar ls-options Op Ar path
1.21      itojun    422: Display local directory listing of either
1.1       djm       423: .Ar path
                    424: or current directory if
                    425: .Ar path
1.5       stevesk   426: is not specified.
1.60      jaredy    427: .Ar ls-options
                    428: may contain any flags supported by the local system's
                    429: .Xr ls 1
                    430: command.
                    431: .Ar path
                    432: may contain
1.118     kn        433: .Xr glob 7
1.60      jaredy    434: characters and may match multiple files.
1.3       deraadt   435: .It Ic lmkdir Ar path
1.1       djm       436: Create local directory specified by
1.3       deraadt   437: .Ar path .
1.88      djm       438: .It Xo Ic ln
                    439: .Op Fl s
                    440: .Ar oldpath
                    441: .Ar newpath
                    442: .Xc
                    443: Create a link from
1.12      djm       444: .Ar oldpath
                    445: to
                    446: .Ar newpath .
1.88      djm       447: If the
                    448: .Fl s
                    449: flag is specified the created link is a symbolic link, otherwise it is
                    450: a hard link.
1.3       deraadt   451: .It Ic lpwd
                    452: Print local working directory.
1.36      djm       453: .It Xo Ic ls
1.82      jmc       454: .Op Fl 1afhlnrSt
1.36      djm       455: .Op Ar path
                    456: .Xc
1.60      jaredy    457: Display a remote directory listing of either
1.1       djm       458: .Ar path
1.60      jaredy    459: or the current directory if
1.5       stevesk   460: .Ar path
1.44      jmc       461: is not specified.
1.60      jaredy    462: .Ar path
                    463: may contain
1.118     kn        464: .Xr glob 7
1.60      jaredy    465: characters and may match multiple files.
                    466: .Pp
                    467: The following flags are recognized and alter the behaviour of
                    468: .Ic ls
                    469: accordingly:
                    470: .Bl -tag -width Ds
                    471: .It Fl 1
                    472: Produce single columnar output.
                    473: .It Fl a
                    474: List files beginning with a dot
                    475: .Pq Sq \&. .
                    476: .It Fl f
                    477: Do not sort the listing.
                    478: The default sort order is lexicographical.
1.81      djm       479: .It Fl h
                    480: When used with a long format option, use unit suffixes: Byte, Kilobyte,
                    481: Megabyte, Gigabyte, Terabyte, Petabyte, and Exabyte in order to reduce
                    482: the number of digits to four or fewer using powers of 2 for sizes (K=1024,
                    483: M=1048576, etc.).
1.82      jmc       484: .It Fl l
                    485: Display additional details including permissions
                    486: and ownership information.
1.60      jaredy    487: .It Fl n
                    488: Produce a long listing with user and group information presented
1.56      djm       489: numerically.
1.60      jaredy    490: .It Fl r
                    491: Reverse the sort order of the listing.
                    492: .It Fl S
                    493: Sort the listing by file size.
                    494: .It Fl t
                    495: Sort the listing by last modification time.
                    496: .El
1.3       deraadt   497: .It Ic lumask Ar umask
1.21      itojun    498: Set local umask to
1.3       deraadt   499: .Ar umask .
                    500: .It Ic mkdir Ar path
1.1       djm       501: Create remote directory specified by
1.3       deraadt   502: .Ar path .
1.40      fgsch     503: .It Ic progress
                    504: Toggle display of progress meter.
1.7       djm       505: .It Xo Ic put
1.98      logan     506: .Op Fl afPpr
1.7       djm       507: .Ar local-path
1.37      djm       508: .Op Ar remote-path
1.7       djm       509: .Xc
1.1       djm       510: Upload
1.5       stevesk   511: .Ar local-path
1.44      jmc       512: and store it on the remote machine.
                    513: If the remote path name is not specified, it is given the same name it has
                    514: on the local machine.
1.60      jaredy    515: .Ar local-path
                    516: may contain
1.118     kn        517: .Xr glob 7
1.60      jaredy    518: characters and may match multiple files.
                    519: If it does and
                    520: .Ar remote-path
                    521: is specified, then
                    522: .Ar remote-path
                    523: must specify a directory.
1.95      djm       524: .Pp
                    525: If the
1.99      jmc       526: .Fl a
1.98      logan     527: flag is specified, then attempt to resume partial
                    528: transfers of existing files.
1.99      jmc       529: Note that resumption assumes that any partial copy of the remote file
1.98      logan     530: matches the local copy.
                    531: If the local file contents differ from the remote local copy then
                    532: the resultant file is likely to be corrupt.
                    533: .Pp
                    534: If the
1.95      djm       535: .Fl f
                    536: flag is specified, then a request will be sent to the server to call
                    537: .Xr fsync 2
                    538: after the file has been transferred.
                    539: Note that this is only supported by servers that implement
                    540: the "fsync@openssh.com" extension.
1.74      djm       541: .Pp
1.90      dtucker   542: If either the
1.7       djm       543: .Fl P
1.74      djm       544: or
                    545: .Fl p
                    546: flag is specified, then full file permissions and access times are
1.7       djm       547: copied too.
1.74      djm       548: .Pp
                    549: If the
                    550: .Fl r
                    551: flag is specified then directories will be copied recursively.
                    552: Note that
                    553: .Nm
                    554: does not follow symbolic links when performing recursive transfers.
1.3       deraadt   555: .It Ic pwd
                    556: Display remote working directory.
                    557: .It Ic quit
1.44      jmc       558: Quit
                    559: .Nm sftp .
1.92      djm       560: .It Xo Ic reget
                    561: .Op Fl Ppr
                    562: .Ar remote-path
                    563: .Op Ar local-path
                    564: .Xc
                    565: Resume download of
                    566: .Ar remote-path .
                    567: Equivalent to
                    568: .Ic get
                    569: with the
1.98      logan     570: .Fl a
                    571: flag set.
                    572: .It Xo Ic reput
                    573: .Op Fl Ppr
                    574: .Op Ar local-path
                    575: .Ar remote-path
                    576: .Xc
                    577: Resume upload of
                    578: .Op Ar local-path .
                    579: Equivalent to
                    580: .Ic put
1.99      jmc       581: with the
1.92      djm       582: .Fl a
                    583: flag set.
1.3       deraadt   584: .It Ic rename Ar oldpath Ar newpath
1.1       djm       585: Rename remote file from
                    586: .Ar oldpath
                    587: to
1.3       deraadt   588: .Ar newpath .
1.46      jmc       589: .It Ic rm Ar path
                    590: Delete remote file specified by
                    591: .Ar path .
1.3       deraadt   592: .It Ic rmdir Ar path
1.1       djm       593: Remove remote directory specified by
1.3       deraadt   594: .Ar path .
1.12      djm       595: .It Ic symlink Ar oldpath Ar newpath
1.21      itojun    596: Create a symbolic link from
1.12      djm       597: .Ar oldpath
                    598: to
                    599: .Ar newpath .
1.38      fgsch     600: .It Ic version
                    601: Display the
                    602: .Nm
                    603: protocol version.
1.69      sobrado   604: .It Ic \&! Ns Ar command
1.21      itojun    605: Execute
1.1       djm       606: .Ar command
1.3       deraadt   607: in local shell.
1.45      jmc       608: .It Ic \&!
1.3       deraadt   609: Escape to local shell.
1.45      jmc       610: .It Ic \&?
1.5       stevesk   611: Synonym for help.
1.4       itojun    612: .El
1.1       djm       613: .Sh SEE ALSO
1.46      jmc       614: .Xr ftp 1 ,
1.60      jaredy    615: .Xr ls 1 ,
1.17      markus    616: .Xr scp 1 ,
1.1       djm       617: .Xr ssh 1 ,
                    618: .Xr ssh-add 1 ,
                    619: .Xr ssh-keygen 1 ,
1.119     jmc       620: .Xr ssh_config 5 ,
1.118     kn        621: .Xr glob 7 ,
1.17      markus    622: .Xr sftp-server 8 ,
                    623: .Xr sshd 8
                    624: .Rs
1.20      deraadt   625: .%A T. Ylonen
                    626: .%A S. Lehtinen
1.17      markus    627: .%T "SSH File Transfer Protocol"
                    628: .%N draft-ietf-secsh-filexfer-00.txt
                    629: .%D January 2001
                    630: .%O work in progress material
                    631: .Re