blob: 72c93b7f5d161670923c05d8233ccac6543ee755 [file] [log] [blame]
Damien Miller64058cb2008-05-19 14:54:25 +10001.\" $OpenBSD: sftp.1,v 1.66 2008/04/18 17:15:47 jmc 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 Miller64058cb2008-05-19 14:54:25 +100025.Dd $Mdocdate: May 19 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 Miller64058cb2008-05-19 14:54:25 +1000115.Ic lchdir , chmod , chown ,
116.Ic chgrp , lpwd , df ,
Ben Lindstrom562c26b2001-03-07 01:26:48 +0000117and
Ben Lindstrom283cb822001-03-09 00:09:02 +0000118.Ic lmkdir .
Damien Miller495dca32003-04-01 21:42:14 +1000119Termination on error can be suppressed on a command by command basis by
120prefixing the command with a
Damien Miller86a39682004-01-21 11:00:04 +1100121.Sq \-
Damien Miller50677922003-05-23 18:44:04 +1000122character (for example,
123.Ic -rm /tmp/blah* ) .
Darren Tucker1f203942003-10-15 15:50:42 +1000124.It Fl C
125Enables compression (via ssh's
126.Fl C
127flag).
128.It Fl F Ar ssh_config
129Specifies an alternative
130per-user configuration file for
131.Xr ssh 1 .
132This option is directly passed to
133.Xr ssh 1 .
Damien Miller33804262001-02-04 23:20:18 +1100134.It Fl o Ar ssh_option
Ben Lindstrom14c62eb2001-08-15 23:25:46 +0000135Can be used to pass options to
136.Nm ssh
Ben Lindstrom3072aae2002-06-21 01:02:39 +0000137in the format used in
138.Xr ssh_config 5 .
139This is useful for specifying options
Ben Lindstrom14c62eb2001-08-15 23:25:46 +0000140for which there is no separate
141.Nm sftp
Damien Miller50677922003-05-23 18:44:04 +1000142command-line flag.
143For example, to specify an alternate port use:
Ben Lindstrom6a337632001-09-18 05:47:32 +0000144.Ic sftp -oPort=24 .
Darren Tucker1f203942003-10-15 15:50:42 +1000145For full details of the options listed below, and their possible values, see
146.Xr ssh_config 5 .
147.Pp
148.Bl -tag -width Ds -offset indent -compact
149.It AddressFamily
150.It BatchMode
151.It BindAddress
152.It ChallengeResponseAuthentication
153.It CheckHostIP
154.It Cipher
155.It Ciphers
Darren Tucker1f203942003-10-15 15:50:42 +1000156.It Compression
157.It CompressionLevel
158.It ConnectionAttempts
Darren Tucker3d5cbb72004-05-03 09:13:15 +1000159.It ConnectTimeout
Damien Miller0e220db2004-06-15 10:34:08 +1000160.It ControlMaster
161.It ControlPath
Darren Tucker1f203942003-10-15 15:50:42 +1000162.It GlobalKnownHostsFile
163.It GSSAPIAuthentication
164.It GSSAPIDelegateCredentials
Damien Miller27e9c512005-03-02 12:04:16 +1100165.It HashKnownHosts
Darren Tucker1f203942003-10-15 15:50:42 +1000166.It Host
167.It HostbasedAuthentication
168.It HostKeyAlgorithms
169.It HostKeyAlias
170.It HostName
171.It IdentityFile
Damien Millerbd394c32004-03-08 23:12:36 +1100172.It IdentitiesOnly
Darren Tucker636ca902004-11-05 20:22:00 +1100173.It KbdInteractiveDevices
Darren Tucker1f203942003-10-15 15:50:42 +1000174.It LogLevel
175.It MACs
176.It NoHostAuthenticationForLocalhost
177.It NumberOfPasswordPrompts
178.It PasswordAuthentication
179.It Port
180.It PreferredAuthentications
181.It Protocol
182.It ProxyCommand
183.It PubkeyAuthentication
Darren Tucker62388b22006-01-20 11:31:47 +1100184.It RekeyLimit
Darren Tucker1f203942003-10-15 15:50:42 +1000185.It RhostsRSAAuthentication
186.It RSAAuthentication
Darren Tucker7a6c0662004-05-02 22:14:03 +1000187.It SendEnv
Damien Miller509b0102003-12-17 16:33:10 +1100188.It ServerAliveInterval
189.It ServerAliveCountMax
Darren Tucker1f203942003-10-15 15:50:42 +1000190.It SmartcardDevice
191.It StrictHostKeyChecking
Damien Miller12c150e2003-12-17 16:31:10 +1100192.It TCPKeepAlive
Darren Tucker1f203942003-10-15 15:50:42 +1000193.It UsePrivilegedPort
194.It User
195.It UserKnownHostsFile
196.It VerifyHostKeyDNS
Darren Tucker1f203942003-10-15 15:50:42 +1000197.El
198.It Fl P Ar sftp_server_path
Damien Miller50677922003-05-23 18:44:04 +1000199Connect directly to a local sftp server
Damien Miller81b6e782002-02-08 22:06:03 +1100200(rather than via
Darren Tucker0133a722004-12-06 22:44:32 +1100201.Xr ssh 1 ) .
Damien Miller81b6e782002-02-08 22:06:03 +1100202This option may be useful in debugging the client and server.
Damien Miller16a13332002-02-13 14:03:56 +1100203.It Fl R Ar num_requests
Damien Miller50677922003-05-23 18:44:04 +1000204Specify how many requests may be outstanding at any one time.
205Increasing this may slightly improve file transfer speed
206but will increase memory usage.
207The default is 16 outstanding requests.
Ben Lindstrom6a337632001-09-18 05:47:32 +0000208.It Fl S Ar program
209Name of the
210.Ar program
211to use for the encrypted connection.
212The program must understand
213.Xr ssh 1
214options.
Darren Tucker1f203942003-10-15 15:50:42 +1000215.It Fl s Ar subsystem | sftp_server
216Specifies the SSH2 subsystem or the path for an sftp server
217on the remote host.
218A path is useful for using
219.Nm
220over protocol version 1, or when the remote
221.Xr sshd 8
222does not have an sftp subsystem configured.
223.It Fl v
224Raise logging level.
225This option is also passed to ssh.
Damien Miller33804262001-02-04 23:20:18 +1100226.El
227.Sh INTERACTIVE COMMANDS
Damien Millerd7686fd2001-02-10 00:40:03 +1100228Once in interactive mode,
229.Nm
Ben Lindstrom24643222001-06-25 05:08:11 +0000230understands a set of commands similar to those of
Damien Miller33804262001-02-04 23:20:18 +1100231.Xr ftp 1 .
Darren Tucker16e254d2004-12-06 22:46:45 +1100232Commands are case insensitive.
233Pathnames that contain spaces must be enclosed in quotes.
234Any special characters contained within pathnames that are recognized by
235.Xr glob 3
236must be escaped with backslashes
237.Pq Sq \e .
238.Bl -tag -width Ds
Ben Lindstrom59e12492001-08-15 23:22:56 +0000239.It Ic bye
Damien Miller50677922003-05-23 18:44:04 +1000240Quit
241.Nm sftp .
Damien Millerd7686fd2001-02-10 00:40:03 +1100242.It Ic cd Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000243Change remote directory to
Damien Millerd7686fd2001-02-10 00:40:03 +1100244.Ar path .
Damien Millerd7686fd2001-02-10 00:40:03 +1100245.It Ic chgrp Ar grp Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000246Change group of file
Damien Millerd7686fd2001-02-10 00:40:03 +1100247.Ar path
248to
Damien Miller33804262001-02-04 23:20:18 +1100249.Ar grp .
Darren Tucker16e254d2004-12-06 22:46:45 +1100250.Ar path
251may contain
252.Xr glob 3
253characters and may match multiple files.
Damien Miller33804262001-02-04 23:20:18 +1100254.Ar grp
Damien Millerd7686fd2001-02-10 00:40:03 +1100255must be a numeric GID.
256.It Ic chmod Ar mode Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000257Change permissions of file
Damien Millerd7686fd2001-02-10 00:40:03 +1100258.Ar path
259to
260.Ar mode .
Darren Tucker16e254d2004-12-06 22:46:45 +1100261.Ar path
262may contain
263.Xr glob 3
264characters and may match multiple files.
Damien Millerd7686fd2001-02-10 00:40:03 +1100265.It Ic chown Ar own Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000266Change owner of file
Damien Millerd7686fd2001-02-10 00:40:03 +1100267.Ar path
268to
Damien Miller33804262001-02-04 23:20:18 +1100269.Ar own .
Darren Tucker16e254d2004-12-06 22:46:45 +1100270.Ar path
271may contain
272.Xr glob 3
273characters and may match multiple files.
Damien Miller33804262001-02-04 23:20:18 +1100274.Ar own
275must be a numeric UID.
Damien Millerd671e5a2008-05-19 14:53:33 +1000276.It Xo Ic df
277.Op Fl hi
278.Op Ar path
279.Xc
280Display usage information for the filesystem holding the current directory
281(or
282.Ar path
283if specified).
284If the
285.Fl h
286flag is specified, the capacity information will be displayed using
287"human-readable" suffixes.
288The
289.Fl i
290flag requests display of inode information in addition to capacity information.
291This command is only supported on servers that implement the
292.Dq statvfs@openssh.com
293extension.
Ben Lindstromc9b6eab2001-03-07 01:29:17 +0000294.It Ic exit
Damien Miller50677922003-05-23 18:44:04 +1000295Quit
296.Nm sftp .
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000297.It Xo Ic get
Darren Tucker16e254d2004-12-06 22:46:45 +1100298.Op Fl P
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000299.Ar remote-path
300.Op Ar local-path
301.Xc
Damien Miller33804262001-02-04 23:20:18 +1100302Retrieve the
Damien Millerd7686fd2001-02-10 00:40:03 +1100303.Ar remote-path
Damien Miller33804262001-02-04 23:20:18 +1100304and store it on the local machine.
305If the local
Ben Lindstrom24643222001-06-25 05:08:11 +0000306path name is not specified, it is given the same name it has on the
Damien Miller50677922003-05-23 18:44:04 +1000307remote machine.
Darren Tucker16e254d2004-12-06 22:46:45 +1100308.Ar remote-path
309may contain
310.Xr glob 3
311characters and may match multiple files.
312If it does and
313.Ar local-path
314is specified, then
315.Ar local-path
316must specify a directory.
Damien Miller50677922003-05-23 18:44:04 +1000317If the
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000318.Fl P
Darren Tucker16e254d2004-12-06 22:46:45 +1100319flag is specified, then full file permissions and access times are
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000320copied too.
Ben Lindstromc9b6eab2001-03-07 01:29:17 +0000321.It Ic help
322Display help text.
Darren Tucker1f203942003-10-15 15:50:42 +1000323.It Ic lcd Ar path
324Change local directory to
325.Ar path .
Damien Millerd7686fd2001-02-10 00:40:03 +1100326.It Ic lls Op Ar ls-options Op Ar path
Ben Lindstrom24643222001-06-25 05:08:11 +0000327Display local directory listing of either
Damien Miller33804262001-02-04 23:20:18 +1100328.Ar path
329or current directory if
330.Ar path
Damien Millerd7686fd2001-02-10 00:40:03 +1100331is not specified.
Darren Tucker16e254d2004-12-06 22:46:45 +1100332.Ar ls-options
333may contain any flags supported by the local system's
334.Xr ls 1
335command.
336.Ar path
337may contain
338.Xr glob 3
339characters and may match multiple files.
Damien Millerd7686fd2001-02-10 00:40:03 +1100340.It Ic lmkdir Ar path
Damien Miller33804262001-02-04 23:20:18 +1100341Create local directory specified by
Damien Millerd7686fd2001-02-10 00:40:03 +1100342.Ar path .
Damien Miller058316f2001-03-08 10:08:49 +1100343.It Ic ln Ar oldpath Ar newpath
Ben Lindstrom24643222001-06-25 05:08:11 +0000344Create a symbolic link from
Damien Miller058316f2001-03-08 10:08:49 +1100345.Ar oldpath
346to
347.Ar newpath .
Damien Millerd7686fd2001-02-10 00:40:03 +1100348.It Ic lpwd
349Print local working directory.
Damien Millere1a49812002-09-12 09:54:25 +1000350.It Xo Ic ls
Darren Tucker16e254d2004-12-06 22:46:45 +1100351.Op Fl 1aflnrSt
Damien Millere1a49812002-09-12 09:54:25 +1000352.Op Ar path
353.Xc
Darren Tucker16e254d2004-12-06 22:46:45 +1100354Display a remote directory listing of either
Damien Miller33804262001-02-04 23:20:18 +1100355.Ar path
Darren Tucker16e254d2004-12-06 22:46:45 +1100356or the current directory if
Damien Miller33804262001-02-04 23:20:18 +1100357.Ar path
Damien Miller50677922003-05-23 18:44:04 +1000358is not specified.
Darren Tucker16e254d2004-12-06 22:46:45 +1100359.Ar path
360may contain
361.Xr glob 3
362characters and may match multiple files.
Darren Tucker15ca6e82004-06-22 13:08:21 +1000363.Pp
Darren Tucker16e254d2004-12-06 22:46:45 +1100364The following flags are recognized and alter the behaviour of
Darren Tucker15ca6e82004-06-22 13:08:21 +1000365.Ic ls
Darren Tucker16e254d2004-12-06 22:46:45 +1100366accordingly:
367.Bl -tag -width Ds
368.It Fl 1
369Produce single columnar output.
370.It Fl a
371List files beginning with a dot
372.Pq Sq \&. .
373.It Fl f
374Do not sort the listing.
375The default sort order is lexicographical.
376.It Fl l
377Display additional details including permissions
378and ownership information.
379.It Fl n
380Produce a long listing with user and group information presented
381numerically.
382.It Fl r
383Reverse the sort order of the listing.
384.It Fl S
385Sort the listing by file size.
386.It Fl t
387Sort the listing by last modification time.
388.El
Damien Millerd7686fd2001-02-10 00:40:03 +1100389.It Ic lumask Ar umask
Ben Lindstrom24643222001-06-25 05:08:11 +0000390Set local umask to
Damien Millerd7686fd2001-02-10 00:40:03 +1100391.Ar umask .
392.It Ic mkdir Ar path
393Create remote directory specified by
394.Ar path .
Damien Miller62d57f62003-01-10 21:43:24 +1100395.It Ic progress
396Toggle display of progress meter.
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000397.It Xo Ic put
Darren Tucker16e254d2004-12-06 22:46:45 +1100398.Op Fl P
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000399.Ar local-path
Ben Lindstromd5767812002-12-23 02:23:37 +0000400.Op Ar remote-path
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000401.Xc
Damien Miller33804262001-02-04 23:20:18 +1100402Upload
Damien Millerd7686fd2001-02-10 00:40:03 +1100403.Ar local-path
Damien Miller50677922003-05-23 18:44:04 +1000404and store it on the remote machine.
405If the remote path name is not specified, it is given the same name it has
406on the local machine.
Darren Tucker16e254d2004-12-06 22:46:45 +1100407.Ar local-path
408may contain
409.Xr glob 3
410characters and may match multiple files.
411If it does and
412.Ar remote-path
413is specified, then
414.Ar remote-path
415must specify a directory.
Damien Miller50677922003-05-23 18:44:04 +1000416If the
Ben Lindstrom9d4f2c82001-02-15 03:22:45 +0000417.Fl P
418flag is specified, then the file's full permission and access time are
419copied too.
Damien Millerd7686fd2001-02-10 00:40:03 +1100420.It Ic pwd
421Display remote working directory.
Damien Millerd7686fd2001-02-10 00:40:03 +1100422.It Ic quit
Damien Miller50677922003-05-23 18:44:04 +1000423Quit
424.Nm sftp .
Damien Millerd7686fd2001-02-10 00:40:03 +1100425.It Ic rename Ar oldpath Ar newpath
Damien Miller33804262001-02-04 23:20:18 +1100426Rename remote file from
427.Ar oldpath
428to
Damien Millerd7686fd2001-02-10 00:40:03 +1100429.Ar newpath .
Damien Millerd7686fd2001-02-10 00:40:03 +1100430.It Ic rm Ar path
Damien Miller33804262001-02-04 23:20:18 +1100431Delete remote file specified by
Damien Millerd7686fd2001-02-10 00:40:03 +1100432.Ar path .
Darren Tucker1f203942003-10-15 15:50:42 +1000433.It Ic rmdir Ar path
434Remove remote directory specified by
435.Ar path .
Damien Miller058316f2001-03-08 10:08:49 +1100436.It Ic symlink Ar oldpath Ar newpath
Ben Lindstrom24643222001-06-25 05:08:11 +0000437Create a symbolic link from
Damien Miller058316f2001-03-08 10:08:49 +1100438.Ar oldpath
439to
440.Ar newpath .
Damien Miller63421802003-01-08 14:05:23 +1100441.It Ic version
442Display the
443.Nm
444protocol version.
Damien Millerc2b98272003-09-03 12:13:30 +1000445.It Ic \&! Ar command
Ben Lindstrom24643222001-06-25 05:08:11 +0000446Execute
Damien Miller33804262001-02-04 23:20:18 +1100447.Ar command
Damien Millerd7686fd2001-02-10 00:40:03 +1100448in local shell.
Damien Millerc2b98272003-09-03 12:13:30 +1000449.It Ic \&!
Damien Millerd7686fd2001-02-10 00:40:03 +1100450Escape to local shell.
Damien Millerc2b98272003-09-03 12:13:30 +1000451.It Ic \&?
Damien Millerd7686fd2001-02-10 00:40:03 +1100452Synonym for help.
453.El
Damien Miller33804262001-02-04 23:20:18 +1100454.Sh SEE ALSO
Darren Tucker1f203942003-10-15 15:50:42 +1000455.Xr ftp 1 ,
Darren Tucker16e254d2004-12-06 22:46:45 +1100456.Xr ls 1 ,
Ben Lindstrom160ec622001-04-22 17:17:46 +0000457.Xr scp 1 ,
Damien Miller33804262001-02-04 23:20:18 +1100458.Xr ssh 1 ,
459.Xr ssh-add 1 ,
460.Xr ssh-keygen 1 ,
Darren Tucker16e254d2004-12-06 22:46:45 +1100461.Xr glob 3 ,
Ben Lindstrom3072aae2002-06-21 01:02:39 +0000462.Xr ssh_config 5 ,
Ben Lindstrom160ec622001-04-22 17:17:46 +0000463.Xr sftp-server 8 ,
464.Xr sshd 8
465.Rs
Ben Lindstrom90fd0602001-06-25 04:45:33 +0000466.%A T. Ylonen
467.%A S. Lehtinen
Ben Lindstrom160ec622001-04-22 17:17:46 +0000468.%T "SSH File Transfer Protocol"
469.%N draft-ietf-secsh-filexfer-00.txt
470.%D January 2001
471.%O work in progress material
472.Re