[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.118

1.118   ! kn          1: .\" $OpenBSD: sftp.1,v 1.117 2018/07/19 10:28:47 dtucker 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.118   ! kn         25: .Dd $Mdocdate: July 19 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.98      logan     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.102     jmc       203: .It CertificateFile
1.46      jmc       204: .It ChallengeResponseAuthentication
                    205: .It CheckHostIP
                    206: .It Ciphers
                    207: .It Compression
1.110     naddy     208: .It ConnectionAttempts
1.54      dtucker   209: .It ConnectTimeout
1.55      djm       210: .It ControlMaster
                    211: .It ControlPath
1.91      djm       212: .It ControlPersist
1.46      jmc       213: .It GlobalKnownHostsFile
                    214: .It GSSAPIAuthentication
                    215: .It GSSAPIDelegateCredentials
1.61      jmc       216: .It HashKnownHosts
1.46      jmc       217: .It Host
                    218: .It HostbasedAuthentication
1.101     djm       219: .It HostbasedKeyTypes
1.46      jmc       220: .It HostKeyAlgorithms
                    221: .It HostKeyAlias
                    222: .It HostName
1.104     jmc       223: .It IdentitiesOnly
1.103     markus    224: .It IdentityAgent
1.46      jmc       225: .It IdentityFile
1.87      jmc       226: .It IPQoS
1.91      djm       227: .It KbdInteractiveAuthentication
1.58      djm       228: .It KbdInteractiveDevices
1.86      jmc       229: .It KexAlgorithms
1.46      jmc       230: .It LogLevel
                    231: .It MACs
                    232: .It NoHostAuthenticationForLocalhost
                    233: .It NumberOfPasswordPrompts
                    234: .It PasswordAuthentication
1.83      markus    235: .It PKCS11Provider
1.46      jmc       236: .It Port
                    237: .It PreferredAuthentications
                    238: .It ProxyCommand
1.105     jmc       239: .It ProxyJump
1.108     jmc       240: .It PubkeyAcceptedKeyTypes
1.46      jmc       241: .It PubkeyAuthentication
1.63      dtucker   242: .It RekeyLimit
1.53      jmc       243: .It SendEnv
1.49      markus    244: .It ServerAliveInterval
                    245: .It ServerAliveCountMax
1.116     jmc       246: .It SetEnv
1.46      jmc       247: .It StrictHostKeyChecking
1.48      markus    248: .It TCPKeepAlive
1.100     djm       249: .It UpdateHostKeys
1.46      jmc       250: .It User
                    251: .It UserKnownHostsFile
                    252: .It VerifyHostKeyDNS
                    253: .El
1.72      djm       254: .It Fl P Ar port
                    255: Specifies the port to connect to on the remote host.
1.74      djm       256: .It Fl p
                    257: Preserves modification times, access times, and modes from the
                    258: original files transferred.
1.70      djm       259: .It Fl q
                    260: Quiet mode: disables the progress meter as well as warning and
                    261: diagnostic messages from
                    262: .Xr ssh 1 .
1.30      djm       263: .It Fl R Ar num_requests
1.44      jmc       264: Specify how many requests may be outstanding at any one time.
                    265: Increasing this may slightly improve file transfer speed
                    266: but will increase memory usage.
1.67      djm       267: The default is 64 outstanding requests.
1.74      djm       268: .It Fl r
                    269: Recursively copy entire directories when uploading and downloading.
                    270: Note that
                    271: .Nm
                    272: does not follow symbolic links encountered in the tree traversal.
1.26      stevesk   273: .It Fl S Ar program
                    274: Name of the
                    275: .Ar program
                    276: to use for the encrypted connection.
                    277: The program must understand
                    278: .Xr ssh 1
                    279: options.
1.46      jmc       280: .It Fl s Ar subsystem | sftp_server
                    281: Specifies the SSH2 subsystem or the path for an sftp server
                    282: on the remote host.
1.109     jmc       283: A path is useful when the remote
1.46      jmc       284: .Xr sshd 8
                    285: does not have an sftp subsystem configured.
                    286: .It Fl v
                    287: Raise logging level.
                    288: This option is also passed to ssh.
1.1       djm       289: .El
                    290: .Sh INTERACTIVE COMMANDS
1.2       djm       291: Once in interactive mode,
                    292: .Nm
1.21      itojun    293: understands a set of commands similar to those of
1.1       djm       294: .Xr ftp 1 .
1.60      jaredy    295: Commands are case insensitive.
                    296: Pathnames that contain spaces must be enclosed in quotes.
                    297: Any special characters contained within pathnames that are recognized by
                    298: .Xr glob 3
                    299: must be escaped with backslashes
                    300: .Pq Sq \e .
                    301: .Bl -tag -width Ds
1.22      markus    302: .It Ic bye
1.44      jmc       303: Quit
                    304: .Nm sftp .
1.113     djm       305: .It Ic cd Op Ar path
1.21      itojun    306: Change remote directory to
1.3       deraadt   307: .Ar path .
1.113     djm       308: If
                    309: .Ar path
                    310: is not specified, then change directory to the one the session started in.
1.3       deraadt   311: .It Ic chgrp Ar grp Ar path
1.21      itojun    312: Change group of file
1.5       stevesk   313: .Ar path
                    314: to
1.1       djm       315: .Ar grp .
1.60      jaredy    316: .Ar path
                    317: may contain
1.118   ! kn        318: .Xr glob 7
1.60      jaredy    319: characters and may match multiple files.
1.1       djm       320: .Ar grp
1.5       stevesk   321: must be a numeric GID.
1.3       deraadt   322: .It Ic chmod Ar mode Ar path
1.21      itojun    323: Change permissions of file
1.5       stevesk   324: .Ar path
                    325: to
1.3       deraadt   326: .Ar mode .
1.60      jaredy    327: .Ar path
                    328: may contain
1.118   ! kn        329: .Xr glob 7
1.60      jaredy    330: characters and may match multiple files.
1.3       deraadt   331: .It Ic chown Ar own Ar path
1.21      itojun    332: Change owner of file
1.5       stevesk   333: .Ar path
                    334: to
1.1       djm       335: .Ar own .
1.60      jaredy    336: .Ar path
                    337: may contain
1.118   ! kn        338: .Xr glob 7
1.60      jaredy    339: characters and may match multiple files.
1.1       djm       340: .Ar own
                    341: must be a numeric UID.
1.65      djm       342: .It Xo Ic df
                    343: .Op Fl hi
                    344: .Op Ar path
                    345: .Xc
                    346: Display usage information for the filesystem holding the current directory
                    347: (or
                    348: .Ar path
                    349: if specified).
                    350: If the
                    351: .Fl h
                    352: flag is specified, the capacity information will be displayed using
                    353: "human-readable" suffixes.
                    354: The
                    355: .Fl i
                    356: flag requests display of inode information in addition to capacity information.
                    357: This command is only supported on servers that implement the
                    358: .Dq statvfs@openssh.com
                    359: extension.
1.11      deraadt   360: .It Ic exit
1.44      jmc       361: Quit
                    362: .Nm sftp .
1.7       djm       363: .It Xo Ic get
1.95      djm       364: .Op Fl afPpr
1.7       djm       365: .Ar remote-path
                    366: .Op Ar local-path
                    367: .Xc
1.1       djm       368: Retrieve the
1.5       stevesk   369: .Ar remote-path
1.1       djm       370: and store it on the local machine.
                    371: If the local
1.21      itojun    372: path name is not specified, it is given the same name it has on the
1.44      jmc       373: remote machine.
1.60      jaredy    374: .Ar remote-path
                    375: may contain
1.118   ! kn        376: .Xr glob 7
1.60      jaredy    377: characters and may match multiple files.
                    378: If it does and
                    379: .Ar local-path
                    380: is specified, then
                    381: .Ar local-path
                    382: must specify a directory.
1.74      djm       383: .Pp
1.92      djm       384: If the
                    385: .Fl a
                    386: flag is specified, then attempt to resume partial transfers of existing files.
                    387: Note that resumption assumes that any partial copy of the local file matches
                    388: the remote copy.
1.93      djm       389: If the remote file contents differ from the partial local copy then the
                    390: resultant file is likely to be corrupt.
1.92      djm       391: .Pp
1.95      djm       392: If the
                    393: .Fl f
                    394: flag is specified, then
                    395: .Xr fsync 2
1.96      jmc       396: will be called after the file transfer has completed to flush the file
1.95      djm       397: to disk.
                    398: .Pp
1.76      jmc       399: If either the
1.75      djm       400: .Fl P
1.74      djm       401: or
                    402: .Fl p
1.60      jaredy    403: flag is specified, then full file permissions and access times are
1.7       djm       404: copied too.
1.74      djm       405: .Pp
                    406: If the
                    407: .Fl r
                    408: flag is specified then directories will be copied recursively.
                    409: Note that
                    410: .Nm
                    411: does not follow symbolic links when performing recursive transfers.
1.11      deraadt   412: .It Ic help
                    413: Display help text.
1.113     djm       414: .It Ic lcd Op Ar path
1.46      jmc       415: Change local directory to
                    416: .Ar path .
1.113     djm       417: If
                    418: .Ar path
                    419: is not specified, then change directory to the local user's home directory.
1.3       deraadt   420: .It Ic lls Op Ar ls-options Op Ar path
1.21      itojun    421: Display local directory listing of either
1.1       djm       422: .Ar path
                    423: or current directory if
                    424: .Ar path
1.5       stevesk   425: is not specified.
1.60      jaredy    426: .Ar ls-options
                    427: may contain any flags supported by the local system's
                    428: .Xr ls 1
                    429: command.
                    430: .Ar path
                    431: may contain
1.118   ! kn        432: .Xr glob 7
1.60      jaredy    433: characters and may match multiple files.
1.3       deraadt   434: .It Ic lmkdir Ar path
1.1       djm       435: Create local directory specified by
1.3       deraadt   436: .Ar path .
1.88      djm       437: .It Xo Ic ln
                    438: .Op Fl s
                    439: .Ar oldpath
                    440: .Ar newpath
                    441: .Xc
                    442: Create a link from
1.12      djm       443: .Ar oldpath
                    444: to
                    445: .Ar newpath .
1.88      djm       446: If the
                    447: .Fl s
                    448: flag is specified the created link is a symbolic link, otherwise it is
                    449: a hard link.
1.3       deraadt   450: .It Ic lpwd
                    451: Print local working directory.
1.36      djm       452: .It Xo Ic ls
1.82      jmc       453: .Op Fl 1afhlnrSt
1.36      djm       454: .Op Ar path
                    455: .Xc
1.60      jaredy    456: Display a remote directory listing of either
1.1       djm       457: .Ar path
1.60      jaredy    458: or the current directory if
1.5       stevesk   459: .Ar path
1.44      jmc       460: is not specified.
1.60      jaredy    461: .Ar path
                    462: may contain
1.118   ! kn        463: .Xr glob 7
1.60      jaredy    464: characters and may match multiple files.
                    465: .Pp
                    466: The following flags are recognized and alter the behaviour of
                    467: .Ic ls
                    468: accordingly:
                    469: .Bl -tag -width Ds
                    470: .It Fl 1
                    471: Produce single columnar output.
                    472: .It Fl a
                    473: List files beginning with a dot
                    474: .Pq Sq \&. .
                    475: .It Fl f
                    476: Do not sort the listing.
                    477: The default sort order is lexicographical.
1.81      djm       478: .It Fl h
                    479: When used with a long format option, use unit suffixes: Byte, Kilobyte,
                    480: Megabyte, Gigabyte, Terabyte, Petabyte, and Exabyte in order to reduce
                    481: the number of digits to four or fewer using powers of 2 for sizes (K=1024,
                    482: M=1048576, etc.).
1.82      jmc       483: .It Fl l
                    484: Display additional details including permissions
                    485: and ownership information.
1.60      jaredy    486: .It Fl n
                    487: Produce a long listing with user and group information presented
1.56      djm       488: numerically.
1.60      jaredy    489: .It Fl r
                    490: Reverse the sort order of the listing.
                    491: .It Fl S
                    492: Sort the listing by file size.
                    493: .It Fl t
                    494: Sort the listing by last modification time.
                    495: .El
1.3       deraadt   496: .It Ic lumask Ar umask
1.21      itojun    497: Set local umask to
1.3       deraadt   498: .Ar umask .
                    499: .It Ic mkdir Ar path
1.1       djm       500: Create remote directory specified by
1.3       deraadt   501: .Ar path .
1.40      fgsch     502: .It Ic progress
                    503: Toggle display of progress meter.
1.7       djm       504: .It Xo Ic put
1.98      logan     505: .Op Fl afPpr
1.7       djm       506: .Ar local-path
1.37      djm       507: .Op Ar remote-path
1.7       djm       508: .Xc
1.1       djm       509: Upload
1.5       stevesk   510: .Ar local-path
1.44      jmc       511: and store it on the remote machine.
                    512: If the remote path name is not specified, it is given the same name it has
                    513: on the local machine.
1.60      jaredy    514: .Ar local-path
                    515: may contain
1.118   ! kn        516: .Xr glob 7
1.60      jaredy    517: characters and may match multiple files.
                    518: If it does and
                    519: .Ar remote-path
                    520: is specified, then
                    521: .Ar remote-path
                    522: must specify a directory.
1.95      djm       523: .Pp
                    524: If the
1.99      jmc       525: .Fl a
1.98      logan     526: flag is specified, then attempt to resume partial
                    527: transfers of existing files.
1.99      jmc       528: Note that resumption assumes that any partial copy of the remote file
1.98      logan     529: matches the local copy.
                    530: If the local file contents differ from the remote local copy then
                    531: the resultant file is likely to be corrupt.
                    532: .Pp
                    533: If the
1.95      djm       534: .Fl f
                    535: flag is specified, then a request will be sent to the server to call
                    536: .Xr fsync 2
                    537: after the file has been transferred.
                    538: Note that this is only supported by servers that implement
                    539: the "fsync@openssh.com" extension.
1.74      djm       540: .Pp
1.90      dtucker   541: If either the
1.7       djm       542: .Fl P
1.74      djm       543: or
                    544: .Fl p
                    545: flag is specified, then full file permissions and access times are
1.7       djm       546: copied too.
1.74      djm       547: .Pp
                    548: If the
                    549: .Fl r
                    550: flag is specified then directories will be copied recursively.
                    551: Note that
                    552: .Nm
                    553: does not follow symbolic links when performing recursive transfers.
1.3       deraadt   554: .It Ic pwd
                    555: Display remote working directory.
                    556: .It Ic quit
1.44      jmc       557: Quit
                    558: .Nm sftp .
1.92      djm       559: .It Xo Ic reget
                    560: .Op Fl Ppr
                    561: .Ar remote-path
                    562: .Op Ar local-path
                    563: .Xc
                    564: Resume download of
                    565: .Ar remote-path .
                    566: Equivalent to
                    567: .Ic get
                    568: with the
1.98      logan     569: .Fl a
                    570: flag set.
                    571: .It Xo Ic reput
                    572: .Op Fl Ppr
                    573: .Op Ar local-path
                    574: .Ar remote-path
                    575: .Xc
                    576: Resume upload of
                    577: .Op Ar local-path .
                    578: Equivalent to
                    579: .Ic put
1.99      jmc       580: with the
1.92      djm       581: .Fl a
                    582: flag set.
1.3       deraadt   583: .It Ic rename Ar oldpath Ar newpath
1.1       djm       584: Rename remote file from
                    585: .Ar oldpath
                    586: to
1.3       deraadt   587: .Ar newpath .
1.46      jmc       588: .It Ic rm Ar path
                    589: Delete remote file specified by
                    590: .Ar path .
1.3       deraadt   591: .It Ic rmdir Ar path
1.1       djm       592: Remove remote directory specified by
1.3       deraadt   593: .Ar path .
1.12      djm       594: .It Ic symlink Ar oldpath Ar newpath
1.21      itojun    595: Create a symbolic link from
1.12      djm       596: .Ar oldpath
                    597: to
                    598: .Ar newpath .
1.38      fgsch     599: .It Ic version
                    600: Display the
                    601: .Nm
                    602: protocol version.
1.69      sobrado   603: .It Ic \&! Ns Ar command
1.21      itojun    604: Execute
1.1       djm       605: .Ar command
1.3       deraadt   606: in local shell.
1.45      jmc       607: .It Ic \&!
1.3       deraadt   608: Escape to local shell.
1.45      jmc       609: .It Ic \&?
1.5       stevesk   610: Synonym for help.
1.4       itojun    611: .El
1.1       djm       612: .Sh SEE ALSO
1.46      jmc       613: .Xr ftp 1 ,
1.60      jaredy    614: .Xr ls 1 ,
1.17      markus    615: .Xr scp 1 ,
1.1       djm       616: .Xr ssh 1 ,
                    617: .Xr ssh-add 1 ,
                    618: .Xr ssh-keygen 1 ,
1.118   ! kn        619: .Xr glob 7 ,
1.35      stevesk   620: .Xr ssh_config 5 ,
1.17      markus    621: .Xr sftp-server 8 ,
                    622: .Xr sshd 8
                    623: .Rs
1.20      deraadt   624: .%A T. Ylonen
                    625: .%A S. Lehtinen
1.17      markus    626: .%T "SSH File Transfer Protocol"
                    627: .%N draft-ietf-secsh-filexfer-00.txt
                    628: .%D January 2001
                    629: .%O work in progress material
                    630: .Re