millert@openbsd.org | 887669e | 2017-10-21 23:06:24 +0000 | [diff] [blame] | 1 | .\" $OpenBSD: sftp.1,v 1.111 2017/10/21 23:06:24 millert Exp $ |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 2 | .\" |
Ben Lindstrom | 92a2e38 | 2001-03-05 06:59:27 +0000 | [diff] [blame] | 3 | .\" Copyright (c) 2001 Damien Miller. All rights reserved. |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 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 | .\" |
millert@openbsd.org | 887669e | 2017-10-21 23:06:24 +0000 | [diff] [blame] | 25 | .Dd $Mdocdate: October 21 2017 $ |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 26 | .Dt SFTP 1 |
| 27 | .Os |
| 28 | .Sh NAME |
| 29 | .Nm sftp |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 30 | .Nd secure file transfer program |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 31 | .Sh SYNOPSIS |
Damien Miller | d6ead28 | 2003-05-14 19:30:38 +1000 | [diff] [blame] | 32 | .Nm sftp |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 33 | .Bk -words |
djm@openbsd.org | 3575f0b | 2017-05-02 08:54:19 +0000 | [diff] [blame] | 34 | .Op Fl 46aCfpqrv |
Damien Miller | 81b6e78 | 2002-02-08 22:06:03 +1100 | [diff] [blame] | 35 | .Op Fl B Ar buffer_size |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 36 | .Op Fl b Ar batchfile |
Darren Tucker | 46bbbe3 | 2009-10-07 08:21:48 +1100 | [diff] [blame] | 37 | .Op Fl c Ar cipher |
Darren Tucker | 282b402 | 2009-10-07 08:23:06 +1100 | [diff] [blame] | 38 | .Op Fl D Ar sftp_server_path |
Damien Miller | 81b6e78 | 2002-02-08 22:06:03 +1100 | [diff] [blame] | 39 | .Op Fl F Ar ssh_config |
Darren Tucker | c07138e | 2009-10-07 08:23:44 +1100 | [diff] [blame] | 40 | .Op Fl i Ar identity_file |
Damien Miller | 65e42f8 | 2010-09-24 22:15:11 +1000 | [diff] [blame] | 41 | .Op Fl l Ar limit |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 42 | .Op Fl o Ar ssh_option |
Darren Tucker | 282b402 | 2009-10-07 08:23:06 +1100 | [diff] [blame] | 43 | .Op Fl P Ar port |
Damien Miller | 16a1333 | 2002-02-13 14:03:56 +1100 | [diff] [blame] | 44 | .Op Fl R Ar num_requests |
Ben Lindstrom | 6a33763 | 2001-09-18 05:47:32 +0000 | [diff] [blame] | 45 | .Op Fl S Ar program |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 46 | .Op Fl s Ar subsystem | sftp_server |
millert@openbsd.org | 887669e | 2017-10-21 23:06:24 +0000 | [diff] [blame] | 47 | .Ar destination |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 48 | .Sh DESCRIPTION |
| 49 | .Nm |
millert@openbsd.org | 887669e | 2017-10-21 23:06:24 +0000 | [diff] [blame] | 50 | is a file transfer program, similar to |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 51 | .Xr ftp 1 , |
| 52 | which performs all operations over an encrypted |
| 53 | .Xr ssh 1 |
| 54 | transport. |
| 55 | It may also use many features of ssh, such as public key authentication and |
| 56 | compression. |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 57 | .Pp |
millert@openbsd.org | 887669e | 2017-10-21 23:06:24 +0000 | [diff] [blame] | 58 | The |
| 59 | .Ar destination |
| 60 | may be specified either as |
| 61 | .Oo Ar user Ns @ Oc Ns Ar host Ns Oo : Ns Ar path Oc |
| 62 | or as an sftp URI in the form |
| 63 | .No sftp:// Ns Oo Ar user Ns @ Oc Ns Ar host Ns |
| 64 | .Oo : Ns Ar port Oc Ns Oo / Ns Ar path Oc . |
| 65 | .Pp |
| 66 | If the |
| 67 | .Ar destination |
| 68 | includes a |
| 69 | .Ar path |
| 70 | and it is not a directory, |
| 71 | .Nm |
| 72 | will retrieve files automatically if a non-interactive |
Ben Lindstrom | aafff9c | 2001-05-06 03:01:02 +0000 | [diff] [blame] | 73 | authentication method is used; otherwise it will do so after |
| 74 | successful interactive authentication. |
Ben Lindstrom | 63667f6 | 2001-04-13 00:00:14 +0000 | [diff] [blame] | 75 | .Pp |
millert@openbsd.org | 887669e | 2017-10-21 23:06:24 +0000 | [diff] [blame] | 76 | If no |
| 77 | .Ar path |
| 78 | is specified, or if the |
| 79 | .Ar path |
| 80 | is a directory, |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 81 | .Nm |
millert@openbsd.org | 887669e | 2017-10-21 23:06:24 +0000 | [diff] [blame] | 82 | will log in to the specified |
| 83 | .Ar host |
| 84 | and enter interactive command mode, changing to the remote directory |
| 85 | if one was specified. |
| 86 | An optional trailing slash can be used to force the |
| 87 | .Ar path |
| 88 | to be interpreted as a directory. |
Ben Lindstrom | 63667f6 | 2001-04-13 00:00:14 +0000 | [diff] [blame] | 89 | .Pp |
millert@openbsd.org | 887669e | 2017-10-21 23:06:24 +0000 | [diff] [blame] | 90 | Since the destination formats use colon characters to delimit host |
| 91 | names from path names or port numbers, IPv6 addresses must be |
| 92 | enclosed in square brackets to avoid ambiguity. |
Damien Miller | 58a77e2 | 2011-05-15 08:36:29 +1000 | [diff] [blame] | 93 | .Pp |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 94 | The options are as follows: |
| 95 | .Bl -tag -width Ds |
Darren Tucker | 46bbbe3 | 2009-10-07 08:21:48 +1100 | [diff] [blame] | 96 | .It Fl 4 |
| 97 | Forces |
| 98 | .Nm |
| 99 | to use IPv4 addresses only. |
| 100 | .It Fl 6 |
| 101 | Forces |
| 102 | .Nm |
| 103 | to use IPv6 addresses only. |
Damien Miller | c6895c5 | 2013-08-21 02:40:21 +1000 | [diff] [blame] | 104 | .It Fl a |
Damien Miller | 798a025 | 2014-05-15 13:47:37 +1000 | [diff] [blame] | 105 | Attempt to continue interrupted transfers rather than overwriting |
Damien Miller | d875ff7 | 2014-05-15 13:47:15 +1000 | [diff] [blame] | 106 | existing partial or complete copies of files. |
Damien Miller | 798a025 | 2014-05-15 13:47:37 +1000 | [diff] [blame] | 107 | If the partial contents differ from those being transferred, |
Damien Miller | d875ff7 | 2014-05-15 13:47:15 +1000 | [diff] [blame] | 108 | then the resultant file is likely to be corrupt. |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 109 | .It Fl B Ar buffer_size |
| 110 | Specify the size of the buffer that |
| 111 | .Nm |
| 112 | uses when transferring files. |
| 113 | Larger buffers require fewer round trips at the cost of higher |
| 114 | memory consumption. |
| 115 | The default is 32768 bytes. |
Ben Lindstrom | 562c26b | 2001-03-07 01:26:48 +0000 | [diff] [blame] | 116 | .It Fl b Ar batchfile |
| 117 | Batch mode reads a series of commands from an input |
Ben Lindstrom | 283cb82 | 2001-03-09 00:09:02 +0000 | [diff] [blame] | 118 | .Ar batchfile |
Ben Lindstrom | 562c26b | 2001-03-07 01:26:48 +0000 | [diff] [blame] | 119 | instead of |
Ben Lindstrom | 283cb82 | 2001-03-09 00:09:02 +0000 | [diff] [blame] | 120 | .Em stdin . |
| 121 | Since it lacks user interaction it should be used in conjunction with |
millert@openbsd.org | 887669e | 2017-10-21 23:06:24 +0000 | [diff] [blame] | 122 | non-interactive authentication to obviate the need to enter a password |
| 123 | at connection time (see |
| 124 | .Xr sshd 8 |
| 125 | and |
| 126 | .Xr ssh-keygen 1 |
| 127 | for details). |
Damien Miller | 44f75c1 | 2004-01-21 10:58:47 +1100 | [diff] [blame] | 128 | A |
Damien Miller | 86a3968 | 2004-01-21 11:00:04 +1100 | [diff] [blame] | 129 | .Ar batchfile |
| 130 | of |
| 131 | .Sq \- |
Damien Miller | 44f75c1 | 2004-01-21 10:58:47 +1100 | [diff] [blame] | 132 | may be used to indicate standard input. |
Ben Lindstrom | 283cb82 | 2001-03-09 00:09:02 +0000 | [diff] [blame] | 133 | .Nm |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 134 | will abort if any of the following |
| 135 | commands fail: |
Damien Miller | d875ff7 | 2014-05-15 13:47:15 +1000 | [diff] [blame] | 136 | .Ic get , put , reget , reput, rename , ln , |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 137 | .Ic rm , mkdir , chdir , ls , |
Damien Miller | 64058cb | 2008-05-19 14:54:25 +1000 | [diff] [blame] | 138 | .Ic lchdir , chmod , chown , |
Darren Tucker | af1f909 | 2010-12-05 09:02:47 +1100 | [diff] [blame] | 139 | .Ic chgrp , lpwd , df , symlink , |
Ben Lindstrom | 562c26b | 2001-03-07 01:26:48 +0000 | [diff] [blame] | 140 | and |
Ben Lindstrom | 283cb82 | 2001-03-09 00:09:02 +0000 | [diff] [blame] | 141 | .Ic lmkdir . |
Damien Miller | 495dca3 | 2003-04-01 21:42:14 +1000 | [diff] [blame] | 142 | Termination on error can be suppressed on a command by command basis by |
| 143 | prefixing the command with a |
Damien Miller | 86a3968 | 2004-01-21 11:00:04 +1100 | [diff] [blame] | 144 | .Sq \- |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 145 | character (for example, |
| 146 | .Ic -rm /tmp/blah* ) . |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 147 | .It Fl C |
| 148 | Enables compression (via ssh's |
| 149 | .Fl C |
| 150 | flag). |
Darren Tucker | adba1ba | 2009-10-07 08:22:20 +1100 | [diff] [blame] | 151 | .It Fl c Ar cipher |
| 152 | Selects the cipher to use for encrypting the data transfers. |
| 153 | This option is directly passed to |
| 154 | .Xr ssh 1 . |
Darren Tucker | 282b402 | 2009-10-07 08:23:06 +1100 | [diff] [blame] | 155 | .It Fl D Ar sftp_server_path |
| 156 | Connect directly to a local sftp server |
| 157 | (rather than via |
| 158 | .Xr ssh 1 ) . |
| 159 | This option may be useful in debugging the client and server. |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 160 | .It Fl F Ar ssh_config |
| 161 | Specifies an alternative |
| 162 | per-user configuration file for |
| 163 | .Xr ssh 1 . |
| 164 | This option is directly passed to |
| 165 | .Xr ssh 1 . |
Damien Miller | f29238e | 2013-10-17 11:48:52 +1100 | [diff] [blame] | 166 | .It Fl f |
| 167 | Requests that files be flushed to disk immediately after transfer. |
| 168 | When uploading files, this feature is only enabled if the server |
| 169 | implements the "fsync@openssh.com" extension. |
Darren Tucker | 46bbbe3 | 2009-10-07 08:21:48 +1100 | [diff] [blame] | 170 | .It Fl i Ar identity_file |
| 171 | Selects the file from which the identity (private key) for public key |
| 172 | authentication is read. |
| 173 | This option is directly passed to |
| 174 | .Xr ssh 1 . |
Damien Miller | 65e42f8 | 2010-09-24 22:15:11 +1000 | [diff] [blame] | 175 | .It Fl l Ar limit |
| 176 | Limits the used bandwidth, specified in Kbit/s. |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 177 | .It Fl o Ar ssh_option |
Ben Lindstrom | 14c62eb | 2001-08-15 23:25:46 +0000 | [diff] [blame] | 178 | Can be used to pass options to |
| 179 | .Nm ssh |
Ben Lindstrom | 3072aae | 2002-06-21 01:02:39 +0000 | [diff] [blame] | 180 | in the format used in |
| 181 | .Xr ssh_config 5 . |
| 182 | This is useful for specifying options |
Ben Lindstrom | 14c62eb | 2001-08-15 23:25:46 +0000 | [diff] [blame] | 183 | for which there is no separate |
| 184 | .Nm sftp |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 185 | command-line flag. |
| 186 | For example, to specify an alternate port use: |
Ben Lindstrom | 6a33763 | 2001-09-18 05:47:32 +0000 | [diff] [blame] | 187 | .Ic sftp -oPort=24 . |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 188 | For full details of the options listed below, and their possible values, see |
| 189 | .Xr ssh_config 5 . |
| 190 | .Pp |
| 191 | .Bl -tag -width Ds -offset indent -compact |
| 192 | .It AddressFamily |
| 193 | .It BatchMode |
| 194 | .It BindAddress |
Damien Miller | c0049bd | 2013-10-23 16:29:59 +1100 | [diff] [blame] | 195 | .It CanonicalDomains |
| 196 | .It CanonicalizeFallbackLocal |
| 197 | .It CanonicalizeHostname |
| 198 | .It CanonicalizeMaxDots |
| 199 | .It CanonicalizePermittedCNAMEs |
jmc@openbsd.org | c5f7c08 | 2015-09-25 18:19:54 +0000 | [diff] [blame] | 200 | .It CertificateFile |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 201 | .It ChallengeResponseAuthentication |
| 202 | .It CheckHostIP |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 203 | .It Ciphers |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 204 | .It Compression |
naddy@openbsd.org | 9a82e24 | 2017-05-03 21:49:18 +0000 | [diff] [blame] | 205 | .It ConnectionAttempts |
Darren Tucker | 3d5cbb7 | 2004-05-03 09:13:15 +1000 | [diff] [blame] | 206 | .It ConnectTimeout |
Damien Miller | 0e220db | 2004-06-15 10:34:08 +1000 | [diff] [blame] | 207 | .It ControlMaster |
| 208 | .It ControlPath |
Damien Miller | e577772 | 2011-09-22 21:34:15 +1000 | [diff] [blame] | 209 | .It ControlPersist |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 210 | .It GlobalKnownHostsFile |
| 211 | .It GSSAPIAuthentication |
| 212 | .It GSSAPIDelegateCredentials |
Damien Miller | 27e9c51 | 2005-03-02 12:04:16 +1100 | [diff] [blame] | 213 | .It HashKnownHosts |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 214 | .It Host |
| 215 | .It HostbasedAuthentication |
djm@openbsd.org | 46347ed | 2015-01-30 11:43:14 +0000 | [diff] [blame] | 216 | .It HostbasedKeyTypes |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 217 | .It HostKeyAlgorithms |
| 218 | .It HostKeyAlias |
| 219 | .It HostName |
jmc@openbsd.org | 772e6ce | 2016-06-29 17:14:28 +0000 | [diff] [blame] | 220 | .It IdentitiesOnly |
markus@openbsd.org | 75e2168 | 2016-05-04 14:32:26 +0000 | [diff] [blame] | 221 | .It IdentityAgent |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 222 | .It IdentityFile |
Damien Miller | 0a18473 | 2010-11-20 15:21:03 +1100 | [diff] [blame] | 223 | .It IPQoS |
Damien Miller | e577772 | 2011-09-22 21:34:15 +1000 | [diff] [blame] | 224 | .It KbdInteractiveAuthentication |
Darren Tucker | 636ca90 | 2004-11-05 20:22:00 +1100 | [diff] [blame] | 225 | .It KbdInteractiveDevices |
Damien Miller | 2beb32f | 2010-09-24 22:16:03 +1000 | [diff] [blame] | 226 | .It KexAlgorithms |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 227 | .It LogLevel |
| 228 | .It MACs |
| 229 | .It NoHostAuthenticationForLocalhost |
| 230 | .It NumberOfPasswordPrompts |
| 231 | .It PasswordAuthentication |
Damien Miller | 7ea845e | 2010-02-12 09:21:02 +1100 | [diff] [blame] | 232 | .It PKCS11Provider |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 233 | .It Port |
| 234 | .It PreferredAuthentications |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 235 | .It ProxyCommand |
jmc@openbsd.org | e4eb7d9 | 2016-07-16 06:57:55 +0000 | [diff] [blame] | 236 | .It ProxyJump |
jmc@openbsd.org | 42b690b | 2017-05-02 14:06:37 +0000 | [diff] [blame] | 237 | .It PubkeyAcceptedKeyTypes |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 238 | .It PubkeyAuthentication |
Darren Tucker | 62388b2 | 2006-01-20 11:31:47 +1100 | [diff] [blame] | 239 | .It RekeyLimit |
Darren Tucker | 7a6c066 | 2004-05-02 22:14:03 +1000 | [diff] [blame] | 240 | .It SendEnv |
Damien Miller | 509b010 | 2003-12-17 16:33:10 +1100 | [diff] [blame] | 241 | .It ServerAliveInterval |
| 242 | .It ServerAliveCountMax |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 243 | .It StrictHostKeyChecking |
Damien Miller | 12c150e | 2003-12-17 16:31:10 +1100 | [diff] [blame] | 244 | .It TCPKeepAlive |
djm@openbsd.org | 1d1092b | 2015-01-26 12:16:36 +0000 | [diff] [blame] | 245 | .It UpdateHostKeys |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 246 | .It UsePrivilegedPort |
| 247 | .It User |
| 248 | .It UserKnownHostsFile |
| 249 | .It VerifyHostKeyDNS |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 250 | .El |
Darren Tucker | 282b402 | 2009-10-07 08:23:06 +1100 | [diff] [blame] | 251 | .It Fl P Ar port |
| 252 | Specifies the port to connect to on the remote host. |
Darren Tucker | 1b0dd17 | 2009-10-07 08:37:48 +1100 | [diff] [blame] | 253 | .It Fl p |
| 254 | Preserves modification times, access times, and modes from the |
| 255 | original files transferred. |
Darren Tucker | 46bbbe3 | 2009-10-07 08:21:48 +1100 | [diff] [blame] | 256 | .It Fl q |
| 257 | Quiet mode: disables the progress meter as well as warning and |
| 258 | diagnostic messages from |
| 259 | .Xr ssh 1 . |
Damien Miller | 16a1333 | 2002-02-13 14:03:56 +1100 | [diff] [blame] | 260 | .It Fl R Ar num_requests |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 261 | Specify how many requests may be outstanding at any one time. |
| 262 | Increasing this may slightly improve file transfer speed |
| 263 | but will increase memory usage. |
Damien Miller | 94717b0 | 2008-07-16 21:17:23 +1000 | [diff] [blame] | 264 | The default is 64 outstanding requests. |
Darren Tucker | 1b0dd17 | 2009-10-07 08:37:48 +1100 | [diff] [blame] | 265 | .It Fl r |
| 266 | Recursively copy entire directories when uploading and downloading. |
| 267 | Note that |
| 268 | .Nm |
| 269 | does not follow symbolic links encountered in the tree traversal. |
Ben Lindstrom | 6a33763 | 2001-09-18 05:47:32 +0000 | [diff] [blame] | 270 | .It Fl S Ar program |
| 271 | Name of the |
| 272 | .Ar program |
| 273 | to use for the encrypted connection. |
| 274 | The program must understand |
| 275 | .Xr ssh 1 |
| 276 | options. |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 277 | .It Fl s Ar subsystem | sftp_server |
| 278 | Specifies the SSH2 subsystem or the path for an sftp server |
| 279 | on the remote host. |
jmc@openbsd.org | 2b6f799 | 2017-05-03 06:32:02 +0000 | [diff] [blame] | 280 | A path is useful when the remote |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 281 | .Xr sshd 8 |
| 282 | does not have an sftp subsystem configured. |
| 283 | .It Fl v |
| 284 | Raise logging level. |
| 285 | This option is also passed to ssh. |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 286 | .El |
| 287 | .Sh INTERACTIVE COMMANDS |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 288 | Once in interactive mode, |
| 289 | .Nm |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 290 | understands a set of commands similar to those of |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 291 | .Xr ftp 1 . |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 292 | Commands are case insensitive. |
| 293 | Pathnames that contain spaces must be enclosed in quotes. |
| 294 | Any special characters contained within pathnames that are recognized by |
| 295 | .Xr glob 3 |
| 296 | must be escaped with backslashes |
| 297 | .Pq Sq \e . |
| 298 | .Bl -tag -width Ds |
Ben Lindstrom | 59e1249 | 2001-08-15 23:22:56 +0000 | [diff] [blame] | 299 | .It Ic bye |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 300 | Quit |
| 301 | .Nm sftp . |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 302 | .It Ic cd Ar path |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 303 | Change remote directory to |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 304 | .Ar path . |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 305 | .It Ic chgrp Ar grp Ar path |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 306 | Change group of file |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 307 | .Ar path |
| 308 | to |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 309 | .Ar grp . |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 310 | .Ar path |
| 311 | may contain |
| 312 | .Xr glob 3 |
| 313 | characters and may match multiple files. |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 314 | .Ar grp |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 315 | must be a numeric GID. |
| 316 | .It Ic chmod Ar mode Ar path |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 317 | Change permissions of file |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 318 | .Ar path |
| 319 | to |
| 320 | .Ar mode . |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 321 | .Ar path |
| 322 | may contain |
| 323 | .Xr glob 3 |
| 324 | characters and may match multiple files. |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 325 | .It Ic chown Ar own Ar path |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 326 | Change owner of file |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 327 | .Ar path |
| 328 | to |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 329 | .Ar own . |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 330 | .Ar path |
| 331 | may contain |
| 332 | .Xr glob 3 |
| 333 | characters and may match multiple files. |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 334 | .Ar own |
| 335 | must be a numeric UID. |
Damien Miller | d671e5a | 2008-05-19 14:53:33 +1000 | [diff] [blame] | 336 | .It Xo Ic df |
| 337 | .Op Fl hi |
| 338 | .Op Ar path |
| 339 | .Xc |
| 340 | Display usage information for the filesystem holding the current directory |
| 341 | (or |
| 342 | .Ar path |
| 343 | if specified). |
| 344 | If the |
| 345 | .Fl h |
| 346 | flag is specified, the capacity information will be displayed using |
| 347 | "human-readable" suffixes. |
| 348 | The |
| 349 | .Fl i |
| 350 | flag requests display of inode information in addition to capacity information. |
| 351 | This command is only supported on servers that implement the |
| 352 | .Dq statvfs@openssh.com |
| 353 | extension. |
Ben Lindstrom | c9b6eab | 2001-03-07 01:29:17 +0000 | [diff] [blame] | 354 | .It Ic exit |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 355 | Quit |
| 356 | .Nm sftp . |
Ben Lindstrom | 9d4f2c8 | 2001-02-15 03:22:45 +0000 | [diff] [blame] | 357 | .It Xo Ic get |
Damien Miller | f29238e | 2013-10-17 11:48:52 +1100 | [diff] [blame] | 358 | .Op Fl afPpr |
Ben Lindstrom | 9d4f2c8 | 2001-02-15 03:22:45 +0000 | [diff] [blame] | 359 | .Ar remote-path |
| 360 | .Op Ar local-path |
| 361 | .Xc |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 362 | Retrieve the |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 363 | .Ar remote-path |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 364 | and store it on the local machine. |
| 365 | If the local |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 366 | path name is not specified, it is given the same name it has on the |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 367 | remote machine. |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 368 | .Ar remote-path |
| 369 | may contain |
| 370 | .Xr glob 3 |
| 371 | characters and may match multiple files. |
| 372 | If it does and |
| 373 | .Ar local-path |
| 374 | is specified, then |
| 375 | .Ar local-path |
| 376 | must specify a directory. |
Darren Tucker | 1b0dd17 | 2009-10-07 08:37:48 +1100 | [diff] [blame] | 377 | .Pp |
Damien Miller | 0d03241 | 2013-07-25 11:56:52 +1000 | [diff] [blame] | 378 | If the |
| 379 | .Fl a |
| 380 | flag is specified, then attempt to resume partial transfers of existing files. |
| 381 | Note that resumption assumes that any partial copy of the local file matches |
| 382 | the remote copy. |
Damien Miller | eec8406 | 2013-08-21 02:39:39 +1000 | [diff] [blame] | 383 | If the remote file contents differ from the partial local copy then the |
| 384 | resultant file is likely to be corrupt. |
Damien Miller | 0d03241 | 2013-07-25 11:56:52 +1000 | [diff] [blame] | 385 | .Pp |
Damien Miller | f29238e | 2013-10-17 11:48:52 +1100 | [diff] [blame] | 386 | If the |
| 387 | .Fl f |
| 388 | flag is specified, then |
| 389 | .Xr fsync 2 |
Damien Miller | 1edcbf6 | 2013-10-18 10:17:17 +1100 | [diff] [blame] | 390 | will be called after the file transfer has completed to flush the file |
Damien Miller | f29238e | 2013-10-17 11:48:52 +1100 | [diff] [blame] | 391 | to disk. |
| 392 | .Pp |
Darren Tucker | b3b40a8 | 2009-10-07 08:39:09 +1100 | [diff] [blame] | 393 | If either the |
Darren Tucker | 05016b2 | 2009-10-07 08:38:23 +1100 | [diff] [blame] | 394 | .Fl P |
Darren Tucker | 1b0dd17 | 2009-10-07 08:37:48 +1100 | [diff] [blame] | 395 | or |
| 396 | .Fl p |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 397 | flag is specified, then full file permissions and access times are |
Ben Lindstrom | 9d4f2c8 | 2001-02-15 03:22:45 +0000 | [diff] [blame] | 398 | copied too. |
Darren Tucker | 1b0dd17 | 2009-10-07 08:37:48 +1100 | [diff] [blame] | 399 | .Pp |
| 400 | If the |
| 401 | .Fl r |
| 402 | flag is specified then directories will be copied recursively. |
| 403 | Note that |
| 404 | .Nm |
| 405 | does not follow symbolic links when performing recursive transfers. |
Ben Lindstrom | c9b6eab | 2001-03-07 01:29:17 +0000 | [diff] [blame] | 406 | .It Ic help |
| 407 | Display help text. |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 408 | .It Ic lcd Ar path |
| 409 | Change local directory to |
| 410 | .Ar path . |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 411 | .It Ic lls Op Ar ls-options Op Ar path |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 412 | Display local directory listing of either |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 413 | .Ar path |
| 414 | or current directory if |
| 415 | .Ar path |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 416 | is not specified. |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 417 | .Ar ls-options |
| 418 | may contain any flags supported by the local system's |
| 419 | .Xr ls 1 |
| 420 | command. |
| 421 | .Ar path |
| 422 | may contain |
| 423 | .Xr glob 3 |
| 424 | characters and may match multiple files. |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 425 | .It Ic lmkdir Ar path |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 426 | Create local directory specified by |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 427 | .Ar path . |
Darren Tucker | af1f909 | 2010-12-05 09:02:47 +1100 | [diff] [blame] | 428 | .It Xo Ic ln |
| 429 | .Op Fl s |
| 430 | .Ar oldpath |
| 431 | .Ar newpath |
| 432 | .Xc |
| 433 | Create a link from |
Damien Miller | 058316f | 2001-03-08 10:08:49 +1100 | [diff] [blame] | 434 | .Ar oldpath |
| 435 | to |
| 436 | .Ar newpath . |
Darren Tucker | af1f909 | 2010-12-05 09:02:47 +1100 | [diff] [blame] | 437 | If the |
| 438 | .Fl s |
| 439 | flag is specified the created link is a symbolic link, otherwise it is |
| 440 | a hard link. |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 441 | .It Ic lpwd |
| 442 | Print local working directory. |
Damien Miller | e1a4981 | 2002-09-12 09:54:25 +1000 | [diff] [blame] | 443 | .It Xo Ic ls |
Darren Tucker | 75fe626 | 2010-01-15 11:42:51 +1100 | [diff] [blame] | 444 | .Op Fl 1afhlnrSt |
Damien Miller | e1a4981 | 2002-09-12 09:54:25 +1000 | [diff] [blame] | 445 | .Op Ar path |
| 446 | .Xc |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 447 | Display a remote directory listing of either |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 448 | .Ar path |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 449 | or the current directory if |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 450 | .Ar path |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 451 | is not specified. |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 452 | .Ar path |
| 453 | may contain |
| 454 | .Xr glob 3 |
| 455 | characters and may match multiple files. |
Darren Tucker | 15ca6e8 | 2004-06-22 13:08:21 +1000 | [diff] [blame] | 456 | .Pp |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 457 | The following flags are recognized and alter the behaviour of |
Darren Tucker | 15ca6e8 | 2004-06-22 13:08:21 +1000 | [diff] [blame] | 458 | .Ic ls |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 459 | accordingly: |
| 460 | .Bl -tag -width Ds |
| 461 | .It Fl 1 |
| 462 | Produce single columnar output. |
| 463 | .It Fl a |
| 464 | List files beginning with a dot |
| 465 | .Pq Sq \&. . |
| 466 | .It Fl f |
| 467 | Do not sort the listing. |
| 468 | The default sort order is lexicographical. |
Darren Tucker | 2901e2d | 2010-01-13 22:44:06 +1100 | [diff] [blame] | 469 | .It Fl h |
| 470 | When used with a long format option, use unit suffixes: Byte, Kilobyte, |
| 471 | Megabyte, Gigabyte, Terabyte, Petabyte, and Exabyte in order to reduce |
| 472 | the number of digits to four or fewer using powers of 2 for sizes (K=1024, |
| 473 | M=1048576, etc.). |
Darren Tucker | 75fe626 | 2010-01-15 11:42:51 +1100 | [diff] [blame] | 474 | .It Fl l |
| 475 | Display additional details including permissions |
| 476 | and ownership information. |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 477 | .It Fl n |
| 478 | Produce a long listing with user and group information presented |
| 479 | numerically. |
| 480 | .It Fl r |
| 481 | Reverse the sort order of the listing. |
| 482 | .It Fl S |
| 483 | Sort the listing by file size. |
| 484 | .It Fl t |
| 485 | Sort the listing by last modification time. |
| 486 | .El |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 487 | .It Ic lumask Ar umask |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 488 | Set local umask to |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 489 | .Ar umask . |
| 490 | .It Ic mkdir Ar path |
| 491 | Create remote directory specified by |
| 492 | .Ar path . |
Damien Miller | 62d57f6 | 2003-01-10 21:43:24 +1100 | [diff] [blame] | 493 | .It Ic progress |
| 494 | Toggle display of progress meter. |
Ben Lindstrom | 9d4f2c8 | 2001-02-15 03:22:45 +0000 | [diff] [blame] | 495 | .It Xo Ic put |
Damien Miller | d875ff7 | 2014-05-15 13:47:15 +1000 | [diff] [blame] | 496 | .Op Fl afPpr |
Ben Lindstrom | 9d4f2c8 | 2001-02-15 03:22:45 +0000 | [diff] [blame] | 497 | .Ar local-path |
Ben Lindstrom | d576781 | 2002-12-23 02:23:37 +0000 | [diff] [blame] | 498 | .Op Ar remote-path |
Ben Lindstrom | 9d4f2c8 | 2001-02-15 03:22:45 +0000 | [diff] [blame] | 499 | .Xc |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 500 | Upload |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 501 | .Ar local-path |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 502 | and store it on the remote machine. |
| 503 | If the remote path name is not specified, it is given the same name it has |
| 504 | on the local machine. |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 505 | .Ar local-path |
| 506 | may contain |
| 507 | .Xr glob 3 |
| 508 | characters and may match multiple files. |
| 509 | If it does and |
| 510 | .Ar remote-path |
| 511 | is specified, then |
| 512 | .Ar remote-path |
| 513 | must specify a directory. |
Darren Tucker | 1b0dd17 | 2009-10-07 08:37:48 +1100 | [diff] [blame] | 514 | .Pp |
Damien Miller | f29238e | 2013-10-17 11:48:52 +1100 | [diff] [blame] | 515 | If the |
Damien Miller | 798a025 | 2014-05-15 13:47:37 +1000 | [diff] [blame] | 516 | .Fl a |
Damien Miller | d875ff7 | 2014-05-15 13:47:15 +1000 | [diff] [blame] | 517 | flag is specified, then attempt to resume partial |
| 518 | transfers of existing files. |
Damien Miller | 798a025 | 2014-05-15 13:47:37 +1000 | [diff] [blame] | 519 | Note that resumption assumes that any partial copy of the remote file |
Damien Miller | d875ff7 | 2014-05-15 13:47:15 +1000 | [diff] [blame] | 520 | matches the local copy. |
| 521 | If the local file contents differ from the remote local copy then |
| 522 | the resultant file is likely to be corrupt. |
| 523 | .Pp |
| 524 | If the |
Damien Miller | f29238e | 2013-10-17 11:48:52 +1100 | [diff] [blame] | 525 | .Fl f |
| 526 | flag is specified, then a request will be sent to the server to call |
| 527 | .Xr fsync 2 |
| 528 | after the file has been transferred. |
| 529 | Note that this is only supported by servers that implement |
| 530 | the "fsync@openssh.com" extension. |
| 531 | .Pp |
Darren Tucker | ddccfb4 | 2011-08-07 23:12:26 +1000 | [diff] [blame] | 532 | If either the |
Ben Lindstrom | 9d4f2c8 | 2001-02-15 03:22:45 +0000 | [diff] [blame] | 533 | .Fl P |
Darren Tucker | 1b0dd17 | 2009-10-07 08:37:48 +1100 | [diff] [blame] | 534 | or |
| 535 | .Fl p |
| 536 | flag is specified, then full file permissions and access times are |
Ben Lindstrom | 9d4f2c8 | 2001-02-15 03:22:45 +0000 | [diff] [blame] | 537 | copied too. |
Darren Tucker | 1b0dd17 | 2009-10-07 08:37:48 +1100 | [diff] [blame] | 538 | .Pp |
| 539 | If the |
| 540 | .Fl r |
| 541 | flag is specified then directories will be copied recursively. |
| 542 | Note that |
| 543 | .Nm |
| 544 | does not follow symbolic links when performing recursive transfers. |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 545 | .It Ic pwd |
| 546 | Display remote working directory. |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 547 | .It Ic quit |
Damien Miller | 5067792 | 2003-05-23 18:44:04 +1000 | [diff] [blame] | 548 | Quit |
| 549 | .Nm sftp . |
Damien Miller | 0d03241 | 2013-07-25 11:56:52 +1000 | [diff] [blame] | 550 | .It Xo Ic reget |
| 551 | .Op Fl Ppr |
| 552 | .Ar remote-path |
| 553 | .Op Ar local-path |
| 554 | .Xc |
| 555 | Resume download of |
| 556 | .Ar remote-path . |
| 557 | Equivalent to |
| 558 | .Ic get |
| 559 | with the |
| 560 | .Fl a |
| 561 | flag set. |
Damien Miller | d875ff7 | 2014-05-15 13:47:15 +1000 | [diff] [blame] | 562 | .It Xo Ic reput |
| 563 | .Op Fl Ppr |
| 564 | .Op Ar local-path |
| 565 | .Ar remote-path |
| 566 | .Xc |
| 567 | Resume upload of |
| 568 | .Op Ar local-path . |
| 569 | Equivalent to |
| 570 | .Ic put |
Damien Miller | 798a025 | 2014-05-15 13:47:37 +1000 | [diff] [blame] | 571 | with the |
Damien Miller | d875ff7 | 2014-05-15 13:47:15 +1000 | [diff] [blame] | 572 | .Fl a |
| 573 | flag set. |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 574 | .It Ic rename Ar oldpath Ar newpath |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 575 | Rename remote file from |
| 576 | .Ar oldpath |
| 577 | to |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 578 | .Ar newpath . |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 579 | .It Ic rm Ar path |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 580 | Delete remote file specified by |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 581 | .Ar path . |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 582 | .It Ic rmdir Ar path |
| 583 | Remove remote directory specified by |
| 584 | .Ar path . |
Damien Miller | 058316f | 2001-03-08 10:08:49 +1100 | [diff] [blame] | 585 | .It Ic symlink Ar oldpath Ar newpath |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 586 | Create a symbolic link from |
Damien Miller | 058316f | 2001-03-08 10:08:49 +1100 | [diff] [blame] | 587 | .Ar oldpath |
| 588 | to |
| 589 | .Ar newpath . |
Damien Miller | 6342180 | 2003-01-08 14:05:23 +1100 | [diff] [blame] | 590 | .It Ic version |
| 591 | Display the |
| 592 | .Nm |
| 593 | protocol version. |
Damien Miller | 62fd18a | 2009-01-28 16:14:09 +1100 | [diff] [blame] | 594 | .It Ic \&! Ns Ar command |
Ben Lindstrom | 2464322 | 2001-06-25 05:08:11 +0000 | [diff] [blame] | 595 | Execute |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 596 | .Ar command |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 597 | in local shell. |
Damien Miller | c2b9827 | 2003-09-03 12:13:30 +1000 | [diff] [blame] | 598 | .It Ic \&! |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 599 | Escape to local shell. |
Damien Miller | c2b9827 | 2003-09-03 12:13:30 +1000 | [diff] [blame] | 600 | .It Ic \&? |
Damien Miller | d7686fd | 2001-02-10 00:40:03 +1100 | [diff] [blame] | 601 | Synonym for help. |
| 602 | .El |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 603 | .Sh SEE ALSO |
Darren Tucker | 1f20394 | 2003-10-15 15:50:42 +1000 | [diff] [blame] | 604 | .Xr ftp 1 , |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 605 | .Xr ls 1 , |
Ben Lindstrom | 160ec62 | 2001-04-22 17:17:46 +0000 | [diff] [blame] | 606 | .Xr scp 1 , |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 607 | .Xr ssh 1 , |
| 608 | .Xr ssh-add 1 , |
| 609 | .Xr ssh-keygen 1 , |
Darren Tucker | 16e254d | 2004-12-06 22:46:45 +1100 | [diff] [blame] | 610 | .Xr glob 3 , |
Ben Lindstrom | 3072aae | 2002-06-21 01:02:39 +0000 | [diff] [blame] | 611 | .Xr ssh_config 5 , |
Ben Lindstrom | 160ec62 | 2001-04-22 17:17:46 +0000 | [diff] [blame] | 612 | .Xr sftp-server 8 , |
| 613 | .Xr sshd 8 |
| 614 | .Rs |
Ben Lindstrom | 90fd060 | 2001-06-25 04:45:33 +0000 | [diff] [blame] | 615 | .%A T. Ylonen |
| 616 | .%A S. Lehtinen |
Ben Lindstrom | 160ec62 | 2001-04-22 17:17:46 +0000 | [diff] [blame] | 617 | .%T "SSH File Transfer Protocol" |
| 618 | .%N draft-ietf-secsh-filexfer-00.txt |
| 619 | .%D January 2001 |
| 620 | .%O work in progress material |
| 621 | .Re |