blob: f34f58856ce82bb64242cdca9faabdcfff4d256d [file] [log] [blame]
Damien Millerd671e5a2008-05-19 14:53:33 +10001.\" $OpenBSD: sftp.1,v 1.65 2008/04/18 12:32:11 djm Exp $
Damien Miller33804262001-02-04 23:20:18 +11002.\"
Ben Lindstrom92a2e382001-03-05 06:59:27 +00003.\" Copyright (c) 2001 Damien Miller. All rights reserved.
Damien Miller33804262001-02-04 23:20:18 +11004.\"
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.\"
Damien Millerd671e5a2008-05-19 14:53:33 +100025.Dd $Mdocdate: April 18 2008 $
Damien Miller33804262001-02-04 23:20:18 +110026.Dt SFTP 1
27.Os
28.Sh NAME
29.Nm sftp
Damien Miller50677922003-05-23 18:44:04 +100030.Nd secure file transfer program
Damien Miller33804262001-02-04 23:20:18 +110031.Sh SYNOPSIS
Damien Millerd6ead282003-05-14 19:30:38 +100032.Nm sftp
Damien Miller495dca32003-04-01 21:42:14 +100033.Bk -words
Darren Tucker1f203942003-10-15 15:50:42 +100034.Op Fl 1Cv
Damien Miller81b6e782002-02-08 22:06:03 +110035.Op Fl B Ar buffer_size
Darren Tucker1f203942003-10-15 15:50:42 +100036.Op Fl b Ar batchfile
Damien Miller81b6e782002-02-08 22:06:03 +110037.Op Fl F Ar ssh_config
Darren Tucker1f203942003-10-15 15:50:42 +100038.Op Fl o Ar ssh_option
39.Op Fl P Ar sftp_server_path
Damien Miller16a13332002-02-13 14:03:56 +110040.Op Fl R Ar num_requests
Ben Lindstrom6a337632001-09-18 05:47:32 +000041.Op Fl S Ar program
Darren Tucker1f203942003-10-15 15:50:42 +100042.Op Fl s Ar subsystem | sftp_server
Ben Lindstrom6a337632001-09-18 05:47:32 +000043.Ar host
Damien Miller495dca32003-04-01 21:42:14 +100044.Ek
Damien Millerd6ead282003-05-14 19:30:38 +100045.Nm sftp
Damien Millerc2b98272003-09-03 12:13:30 +100046.Oo Oo Ar user Ns @ Oc Ns
Damien Miller495dca32003-04-01 21:42:14 +100047.Ar host Ns Oo : Ns Ar file Oo
48.Ar file Oc Oc Oc
Damien Millerd6ead282003-05-14 19:30:38 +100049.Nm sftp
Damien Millerc2b98272003-09-03 12:13:30 +100050.Oo Oo Ar user Ns @ Oc Ns
Damien Miller495dca32003-04-01 21:42:14 +100051.Ar host Ns Oo : Ns Ar dir Ns
52.Oo Ar / Oc Oc Oc
Damien Millerd6ead282003-05-14 19:30:38 +100053.Nm sftp
Damien Millerfb7508e2003-05-14 13:47:07 +100054.Fl b Ar batchfile
Damien Millerc2b98272003-09-03 12:13:30 +100055.Oo Ar user Ns @ Oc Ns Ar host
Damien Miller33804262001-02-04 23:20:18 +110056.Sh DESCRIPTION
57.Nm
58is an interactive file transfer program, similar to
59.Xr ftp 1 ,
60which performs all operations over an encrypted
61.Xr ssh 1
62transport.
63It may also use many features of ssh, such as public key authentication and
64compression.
65.Nm
66connects and logs into the specified
Ben Lindstromaafff9c2001-05-06 03:01:02 +000067.Ar host ,
Damien Miller33804262001-02-04 23:20:18 +110068then enters an interactive command mode.
69.Pp
Ben Lindstrom24643222001-06-25 05:08:11 +000070The second usage format will retrieve files automatically if a non-interactive
Ben Lindstromaafff9c2001-05-06 03:01:02 +000071authentication method is used; otherwise it will do so after
72successful interactive authentication.
Ben Lindstrom63667f62001-04-13 00:00:14 +000073.Pp
Darren Tucker16e254d2004-12-06 22:46:45 +110074The third usage format allows
75.Nm
76to start in a remote directory.
Ben Lindstrom63667f62001-04-13 00:00:14 +000077.Pp
Damien Miller50677922003-05-23 18:44:04 +100078The final usage format allows for automated sessions using the
Damien Millerfb7508e2003-05-14 13:47:07 +100079.Fl b
Damien Miller50677922003-05-23 18:44:04 +100080option.
Damien Miller134eb812005-12-31 16:22:55 +110081In such cases, it is necessary to configure non-interactive authentication
Damien Miller50677922003-05-23 18:44:04 +100082to obviate the need to enter a password at connection time (see
Damien Millerfb7508e2003-05-14 13:47:07 +100083.Xr sshd 8
Damien Millerd6ead282003-05-14 19:30:38 +100084and
Damien Millerfb7508e2003-05-14 13:47:07 +100085.Xr ssh-keygen 1
Damien Miller50677922003-05-23 18:44:04 +100086for details).
Damien Miller33804262001-02-04 23:20:18 +110087The options are as follows:
88.Bl -tag -width Ds
Darren Tucker1f203942003-10-15 15:50:42 +100089.It Fl 1
90Specify the use of protocol version 1.
91.It Fl B Ar buffer_size
92Specify the size of the buffer that
93.Nm
94uses when transferring files.
95Larger buffers require fewer round trips at the cost of higher
96memory consumption.
97The default is 32768 bytes.
Ben Lindstrom562c26b2001-03-07 01:26:48 +000098.It Fl b Ar batchfile
99Batch mode reads a series of commands from an input
Ben Lindstrom283cb822001-03-09 00:09:02 +0000100.Ar batchfile
Ben Lindstrom562c26b2001-03-07 01:26:48 +0000101instead of
Ben Lindstrom283cb822001-03-09 00:09:02 +0000102.Em stdin .
103Since it lacks user interaction it should be used in conjunction with
Damien Miller86a39682004-01-21 11:00:04 +1100104non-interactive authentication.
Damien Miller44f75c12004-01-21 10:58:47 +1100105A
Damien Miller86a39682004-01-21 11:00:04 +1100106.Ar batchfile
107of
108.Sq \-
Damien Miller44f75c12004-01-21 10:58:47 +1100109may be used to indicate standard input.
Ben Lindstrom283cb822001-03-09 00:09:02 +0000110.Nm
Ben Lindstrom24643222001-06-25 05:08:11 +0000111will abort if any of the following
112commands fail:
Ben Lindstrom3612bda2002-03-05 01:26:38 +0000113.Ic get , put , rename , ln ,
Damien Miller495dca32003-04-01 21:42:14 +1000114.Ic rm , mkdir , chdir , ls ,
Damien Millerd671e5a2008-05-19 14:53:33 +1000115.Ic lchdir , chmod , chown , chgrp , lpwd, df,
Ben Lindstrom562c26b2001-03-07 01:26:48 +0000116and
Ben Lindstrom283cb822001-03-09 00:09:02 +0000117.Ic lmkdir .
Damien Miller495dca32003-04-01 21:42:14 +1000118Termination on error can be suppressed on a command by command basis by
119prefixing the command with a
Damien Miller86a39682004-01-21 11:00:04 +1100120.Sq \-
Damien Miller50677922003-05-23 18:44:04 +1000121character (for example,
122.Ic -rm /tmp/blah* ) .
Darren Tucker1f203942003-10-15 15:50:42 +1000123.It Fl C
124Enables compression (via ssh's
125.Fl C
126flag).
127.It Fl F Ar ssh_config
128Specifies an alternative
129per-user configuration file for
130.Xr ssh 1 .
131This option is directly passed to
132.Xr ssh 1 .
Damien Miller33804262001-02-04 23:20:18 +1100133.It Fl o Ar ssh_option
Ben Lindstrom14c62eb2001-08-15 23:25:46 +0000134Can be used to pass options to
135.Nm ssh
Ben Lindstrom3072aae2002-06-21 01:02:39 +0000136in the format used in
137.Xr ssh_config 5 .
138This is useful for specifying options
Ben Lindstrom14c62eb2001-08-15 23:25:46 +0000139for which there is no separate
140.Nm sftp
Damien Miller50677922003-05-23 18:44:04 +1000141command-line flag.
142For example, to specify an alternate port use:
Ben Lindstrom6a337632001-09-18 05:47:32 +0000143.Ic sftp -oPort=24 .
Darren Tucker1f203942003-10-15 15:50:42 +1000144For full details of the options listed below, and their possible values, see
145.Xr ssh_config 5 .
146.Pp
147.Bl -tag -width Ds -offset indent -compact
148.It AddressFamily
149.It BatchMode
150.It BindAddress
151.It ChallengeResponseAuthentication
152.It CheckHostIP
153.It Cipher
154.It Ciphers
Darren Tucker1f203942003-10-15 15:50:42 +1000155.It Compression
156.It CompressionLevel
157.It ConnectionAttempts
Darren Tucker3d5cbb72004-05-03 09:13:15 +1000158.It ConnectTimeout
Damien Miller0e220db2004-06-15 10:34:08 +1000159.It ControlMaster
160.It ControlPath
Darren Tucker1f203942003-10-15 15:50:42 +1000161.It GlobalKnownHostsFile
162.It GSSAPIAuthentication
163.It GSSAPIDelegateCredentials
Damien Miller27e9c512005-03-02 12:04:16 +1100164.It HashKnownHosts
Darren Tucker1f203942003-10-15 15:50:42 +1000165.It Host
166.It HostbasedAuthentication
167.It HostKeyAlgorithms
168.It HostKeyAlias
169.It HostName
170.It IdentityFile
Damien Millerbd394c32004-03-08 23:12:36 +1100171.It IdentitiesOnly
Darren Tucker636ca902004-11-05 20:22:00 +1100172.It KbdInteractiveDevices
Darren Tucker1f203942003-10-15 15:50:42 +1000173.It LogLevel
174.It MACs
175.It NoHostAuthenticationForLocalhost
176.It NumberOfPasswordPrompts
177.It PasswordAuthentication
178.It Port
179.It PreferredAuthentications
180.It Protocol
181.It ProxyCommand
182.It PubkeyAuthentication
Darren Tucker62388b22006-01-20 11:31:47 +1100183.It RekeyLimit
Darren Tucker1f203942003-10-15 15:50:42 +1000184.It RhostsRSAAuthentication
185.It RSAAuthentication
Darren Tucker7a6c0662004-05-02 22:14:03 +1000186.It SendEnv
Damien Miller509b0102003-12-17 16:33:10 +1100187.It ServerAliveInterval
188.It ServerAliveCountMax
Darren Tucker1f203942003-10-15 15:50:42 +1000189.It SmartcardDevice
190.It StrictHostKeyChecking
Damien Miller12c150e2003-12-17 16:31:10 +1100191.It TCPKeepAlive
Darren Tucker1f203942003-10-15 15:50:42 +1000192.It UsePrivilegedPort
193.It User
194.It UserKnownHostsFile
195.It VerifyHostKeyDNS
Darren Tucker1f203942003-10-15 15:50:42 +1000196.El
197.It Fl P Ar sftp_server_path
Damien Miller50677922003-05-23 18:44:04 +1000198Connect directly to a local sftp server
Damien Miller81b6e782002-02-08 22:06:03 +1100199(rather than via
Darren Tucker0133a722004-12-06 22:44:32 +1100200.Xr ssh 1 ) .
Damien Miller81b6e782002-02-08 22:06:03 +1100201This option may be useful in debugging the client and server.
Damien Miller16a13332002-02-13 14:03:56 +1100202.It Fl R Ar num_requests
Damien Miller50677922003-05-23 18:44:04 +1000203Specify how many requests may be outstanding at any one time.
204Increasing this may slightly improve file transfer speed
205but will increase memory usage.
206The default is 16 outstanding requests.
Ben Lindstrom6a337632001-09-18 05:47:32 +0000207.It Fl S Ar program
208Name of the
209.Ar program
210to use for the encrypted connection.
211The program must understand
212.Xr ssh 1
213options.
Darren Tucker1f203942003-10-15 15:50:42 +1000214.It Fl s Ar subsystem | sftp_server
215Specifies the SSH2 subsystem or the path for an sftp server
216on the remote host.
217A path is useful for using
218.Nm
219over protocol version 1, or when the remote
220.Xr sshd 8
221does not have an sftp subsystem configured.
222.It Fl v
223Raise logging level.
224This option is also passed to ssh.
Damien Miller33804262001-02-04 23:20:18 +1100225.El
226.Sh INTERACTIVE COMMANDS
Damien Millerd7686fd2001-02-10 00:40:03 +1100227Once in interactive mode,
228.Nm
Ben Lindstrom24643222001-06-25 05:08:11 +0000229understands a set of commands similar to those of
Damien Miller33804262001-02-04 23:20:18 +1100230.Xr ftp 1 .
Darren Tucker16e254d2004-12-06 22:46:45 +1100231Commands are case insensitive.
232Pathnames that contain spaces must be enclosed in quotes.
233Any special characters contained within pathnames that are recognized by
234.Xr glob 3
235must be escaped with backslashes
236.Pq Sq \e .
237.Bl -tag -width Ds
Ben Lindstrom59e12492001-08-15 23:22:56 +0000238.It Ic bye
Damien Miller50677922003-05-23 18:44:04 +1000239Quit
240.Nm sftp .
Damien Millerd7686fd2001-02-10 00:40:03 +1100241.It Ic cd Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000242Change remote directory to
Damien Millerd7686fd2001-02-10 00:40:03 +1100243.Ar path .
Damien Millerd7686fd2001-02-10 00:40:03 +1100244.It Ic chgrp Ar grp Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000245Change group of file
Damien Millerd7686fd2001-02-10 00:40:03 +1100246.Ar path
247to
Damien Miller33804262001-02-04 23:20:18 +1100248.Ar grp .
Darren Tucker16e254d2004-12-06 22:46:45 +1100249.Ar path
250may contain
251.Xr glob 3
252characters and may match multiple files.
Damien Miller33804262001-02-04 23:20:18 +1100253.Ar grp
Damien Millerd7686fd2001-02-10 00:40:03 +1100254must be a numeric GID.
255.It Ic chmod Ar mode Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000256Change permissions of file
Damien Millerd7686fd2001-02-10 00:40:03 +1100257.Ar path
258to
259.Ar mode .
Darren Tucker16e254d2004-12-06 22:46:45 +1100260.Ar path
261may contain
262.Xr glob 3
263characters and may match multiple files.
Damien Millerd7686fd2001-02-10 00:40:03 +1100264.It Ic chown Ar own Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000265Change owner of file
Damien Millerd7686fd2001-02-10 00:40:03 +1100266.Ar path
267to
Damien Miller33804262001-02-04 23:20:18 +1100268.Ar own .
Darren Tucker16e254d2004-12-06 22:46:45 +1100269.Ar path
270may contain
271.Xr glob 3
272characters and may match multiple files.
Damien Miller33804262001-02-04 23:20:18 +1100273.Ar own
274must be a numeric UID.
Damien Millerd671e5a2008-05-19 14:53:33 +1000275.It Xo Ic df
276.Op Fl hi
277.Op Ar path
278.Xc
279Display usage information for the filesystem holding the current directory
280(or
281.Ar path
282if specified).
283If the
284.Fl h
285flag is specified, the capacity information will be displayed using
286"human-readable" suffixes.
287The
288.Fl i
289flag requests display of inode information in addition to capacity information.
290This command is only supported on servers that implement the
291.Dq statvfs@openssh.com
292extension.
Ben Lindstromc9b6eab2001-03-07 01:29:17 +0000293.It Ic exit
Damien Miller50677922003-05-23 18:44:04 +1000294Quit
295.Nm sftp .
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000296.It Xo Ic get
Darren Tucker16e254d2004-12-06 22:46:45 +1100297.Op Fl P
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000298.Ar remote-path
299.Op Ar local-path
300.Xc
Damien Miller33804262001-02-04 23:20:18 +1100301Retrieve the
Damien Millerd7686fd2001-02-10 00:40:03 +1100302.Ar remote-path
Damien Miller33804262001-02-04 23:20:18 +1100303and store it on the local machine.
304If the local
Ben Lindstrom24643222001-06-25 05:08:11 +0000305path name is not specified, it is given the same name it has on the
Damien Miller50677922003-05-23 18:44:04 +1000306remote machine.
Darren Tucker16e254d2004-12-06 22:46:45 +1100307.Ar remote-path
308may contain
309.Xr glob 3
310characters and may match multiple files.
311If it does and
312.Ar local-path
313is specified, then
314.Ar local-path
315must specify a directory.
Damien Miller50677922003-05-23 18:44:04 +1000316If the
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000317.Fl P
Darren Tucker16e254d2004-12-06 22:46:45 +1100318flag is specified, then full file permissions and access times are
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000319copied too.
Ben Lindstromc9b6eab2001-03-07 01:29:17 +0000320.It Ic help
321Display help text.
Darren Tucker1f203942003-10-15 15:50:42 +1000322.It Ic lcd Ar path
323Change local directory to
324.Ar path .
Damien Millerd7686fd2001-02-10 00:40:03 +1100325.It Ic lls Op Ar ls-options Op Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000326Display local directory listing of either
Damien Miller33804262001-02-04 23:20:18 +1100327.Ar path
328or current directory if
329.Ar path
Damien Millerd7686fd2001-02-10 00:40:03 +1100330is not specified.
Darren Tucker16e254d2004-12-06 22:46:45 +1100331.Ar ls-options
332may contain any flags supported by the local system's
333.Xr ls 1
334command.
335.Ar path
336may contain
337.Xr glob 3
338characters and may match multiple files.
Damien Millerd7686fd2001-02-10 00:40:03 +1100339.It Ic lmkdir Ar path
Damien Miller33804262001-02-04 23:20:18 +1100340Create local directory specified by
Damien Millerd7686fd2001-02-10 00:40:03 +1100341.Ar path .
Damien Miller058316f2001-03-08 10:08:49 +1100342.It Ic ln Ar oldpath Ar newpath
Ben Lindstrom24643222001-06-25 05:08:11 +0000343Create a symbolic link from
Damien Miller058316f2001-03-08 10:08:49 +1100344.Ar oldpath
345to
346.Ar newpath .
Damien Millerd7686fd2001-02-10 00:40:03 +1100347.It Ic lpwd
348Print local working directory.
Damien Millere1a49812002-09-12 09:54:25 +1000349.It Xo Ic ls
Darren Tucker16e254d2004-12-06 22:46:45 +1100350.Op Fl 1aflnrSt
Damien Millere1a49812002-09-12 09:54:25 +1000351.Op Ar path
352.Xc
Darren Tucker16e254d2004-12-06 22:46:45 +1100353Display a remote directory listing of either
Damien Miller33804262001-02-04 23:20:18 +1100354.Ar path
Darren Tucker16e254d2004-12-06 22:46:45 +1100355or the current directory if
Damien Miller33804262001-02-04 23:20:18 +1100356.Ar path
Damien Miller50677922003-05-23 18:44:04 +1000357is not specified.
Darren Tucker16e254d2004-12-06 22:46:45 +1100358.Ar path
359may contain
360.Xr glob 3
361characters and may match multiple files.
Darren Tucker15ca6e82004-06-22 13:08:21 +1000362.Pp
Darren Tucker16e254d2004-12-06 22:46:45 +1100363The following flags are recognized and alter the behaviour of
Darren Tucker15ca6e82004-06-22 13:08:21 +1000364.Ic ls
Darren Tucker16e254d2004-12-06 22:46:45 +1100365accordingly:
366.Bl -tag -width Ds
367.It Fl 1
368Produce single columnar output.
369.It Fl a
370List files beginning with a dot
371.Pq Sq \&. .
372.It Fl f
373Do not sort the listing.
374The default sort order is lexicographical.
375.It Fl l
376Display additional details including permissions
377and ownership information.
378.It Fl n
379Produce a long listing with user and group information presented
380numerically.
381.It Fl r
382Reverse the sort order of the listing.
383.It Fl S
384Sort the listing by file size.
385.It Fl t
386Sort the listing by last modification time.
387.El
Damien Millerd7686fd2001-02-10 00:40:03 +1100388.It Ic lumask Ar umask
Ben Lindstrom24643222001-06-25 05:08:11 +0000389Set local umask to
Damien Millerd7686fd2001-02-10 00:40:03 +1100390.Ar umask .
391.It Ic mkdir Ar path
392Create remote directory specified by
393.Ar path .
Damien Miller62d57f62003-01-10 21:43:24 +1100394.It Ic progress
395Toggle display of progress meter.
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000396.It Xo Ic put
Darren Tucker16e254d2004-12-06 22:46:45 +1100397.Op Fl P
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000398.Ar local-path
Ben Lindstromd5767812002-12-23 02:23:37 +0000399.Op Ar remote-path
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000400.Xc
Damien Miller33804262001-02-04 23:20:18 +1100401Upload
Damien Millerd7686fd2001-02-10 00:40:03 +1100402.Ar local-path
Damien Miller50677922003-05-23 18:44:04 +1000403and store it on the remote machine.
404If the remote path name is not specified, it is given the same name it has
405on the local machine.
Darren Tucker16e254d2004-12-06 22:46:45 +1100406.Ar local-path
407may contain
408.Xr glob 3
409characters and may match multiple files.
410If it does and
411.Ar remote-path
412is specified, then
413.Ar remote-path
414must specify a directory.
Damien Miller50677922003-05-23 18:44:04 +1000415If the
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000416.Fl P
417flag is specified, then the file's full permission and access time are
418copied too.
Damien Millerd7686fd2001-02-10 00:40:03 +1100419.It Ic pwd
420Display remote working directory.
Damien Millerd7686fd2001-02-10 00:40:03 +1100421.It Ic quit
Damien Miller50677922003-05-23 18:44:04 +1000422Quit
423.Nm sftp .
Damien Millerd7686fd2001-02-10 00:40:03 +1100424.It Ic rename Ar oldpath Ar newpath
Damien Miller33804262001-02-04 23:20:18 +1100425Rename remote file from
426.Ar oldpath
427to
Damien Millerd7686fd2001-02-10 00:40:03 +1100428.Ar newpath .
Damien Millerd7686fd2001-02-10 00:40:03 +1100429.It Ic rm Ar path
Damien Miller33804262001-02-04 23:20:18 +1100430Delete remote file specified by
Damien Millerd7686fd2001-02-10 00:40:03 +1100431.Ar path .
Darren Tucker1f203942003-10-15 15:50:42 +1000432.It Ic rmdir Ar path
433Remove remote directory specified by
434.Ar path .
Damien Miller058316f2001-03-08 10:08:49 +1100435.It Ic symlink Ar oldpath Ar newpath
Ben Lindstrom24643222001-06-25 05:08:11 +0000436Create a symbolic link from
Damien Miller058316f2001-03-08 10:08:49 +1100437.Ar oldpath
438to
439.Ar newpath .
Damien Miller63421802003-01-08 14:05:23 +1100440.It Ic version
441Display the
442.Nm
443protocol version.
Damien Millerc2b98272003-09-03 12:13:30 +1000444.It Ic \&! Ar command
Ben Lindstrom24643222001-06-25 05:08:11 +0000445Execute
Damien Miller33804262001-02-04 23:20:18 +1100446.Ar command
Damien Millerd7686fd2001-02-10 00:40:03 +1100447in local shell.
Damien Millerc2b98272003-09-03 12:13:30 +1000448.It Ic \&!
Damien Millerd7686fd2001-02-10 00:40:03 +1100449Escape to local shell.
Damien Millerc2b98272003-09-03 12:13:30 +1000450.It Ic \&?
Damien Millerd7686fd2001-02-10 00:40:03 +1100451Synonym for help.
452.El
Damien Miller33804262001-02-04 23:20:18 +1100453.Sh SEE ALSO
Darren Tucker1f203942003-10-15 15:50:42 +1000454.Xr ftp 1 ,
Darren Tucker16e254d2004-12-06 22:46:45 +1100455.Xr ls 1 ,
Ben Lindstrom160ec622001-04-22 17:17:46 +0000456.Xr scp 1 ,
Damien Miller33804262001-02-04 23:20:18 +1100457.Xr ssh 1 ,
458.Xr ssh-add 1 ,
459.Xr ssh-keygen 1 ,
Darren Tucker16e254d2004-12-06 22:46:45 +1100460.Xr glob 3 ,
Ben Lindstrom3072aae2002-06-21 01:02:39 +0000461.Xr ssh_config 5 ,
Ben Lindstrom160ec622001-04-22 17:17:46 +0000462.Xr sftp-server 8 ,
463.Xr sshd 8
464.Rs
Ben Lindstrom90fd0602001-06-25 04:45:33 +0000465.%A T. Ylonen
466.%A S. Lehtinen
Ben Lindstrom160ec622001-04-22 17:17:46 +0000467.%T "SSH File Transfer Protocol"
468.%N draft-ietf-secsh-filexfer-00.txt
469.%D January 2001
470.%O work in progress material
471.Re