]> andersk Git - openssh.git/blame - sftp.1
- deraadt@cvs.openbsd.org 2001/03/02 09:42:49
[openssh.git] / sftp.1
CommitLineData
e68225b2 1.\" $OpenBSD: sftp.1,v 1.8 2001/02/17 15:24:40 reinhard Exp $
61e96248 2.\"
3.\" Copyright (c) 2001 Damien Miller. All rights reserved.
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.\"
25.Dd Febuary 4, 2001
26.Dt SFTP 1
27.Os
28.Sh NAME
29.Nm sftp
e68225b2 30.Nd Secure file transfer program
61e96248 31.Sh SYNOPSIS
32.Nm sftp
0426a3b4 33.Op Fl vC
61e96248 34.Op Fl o Ar ssh_option
35.Op Ar hostname | user@hostname
36.Sh DESCRIPTION
37.Nm
38is an interactive file transfer program, similar to
39.Xr ftp 1 ,
40which performs all operations over an encrypted
41.Xr ssh 1
42transport.
43It may also use many features of ssh, such as public key authentication and
44compression.
45.Nm
46connects and logs into the specified
0426a3b4 47.Ar hostname ,
61e96248 48then enters an interactive command mode.
49.Pp
50The options are as follows:
51.Bl -tag -width Ds
0426a3b4 52.It Fl v
53Raise logging level. This option is also passed to ssh.
61e96248 54.It Fl C
55Enables compression (via ssh's
56.Fl C
57flag)
61e96248 58.It Fl o Ar ssh_option
59Specify an option to be directly passed to
60.Xr ssh 1 .
61.El
62.Sh INTERACTIVE COMMANDS
0426a3b4 63Once in interactive mode,
64.Nm
61e96248 65understands a set of commands similar to those of
66.Xr ftp 1 .
a0e6fead 67Commands are case insensitive and pathnames may be enclosed in quotes if they
68contain spaces.
61e96248 69.Bl -tag -width Ds
0426a3b4 70.It Ic cd Ar path
61e96248 71Change remote directory to
0426a3b4 72.Ar path .
73.It Ic lcd Ar path
61e96248 74Change local directory to
0426a3b4 75.Ar path .
76.It Ic chgrp Ar grp Ar path
61e96248 77Change group of file
0426a3b4 78.Ar path
79to
61e96248 80.Ar grp .
81.Ar grp
0426a3b4 82must be a numeric GID.
83.It Ic chmod Ar mode Ar path
61e96248 84Change permissions of file
0426a3b4 85.Ar path
86to
87.Ar mode .
88.It Ic chown Ar own Ar path
61e96248 89Change owner of file
0426a3b4 90.Ar path
91to
61e96248 92.Ar own .
93.Ar own
94must be a numeric UID.
0426a3b4 95.It Ic help
96Display help text.
58c54a79 97.It Xo Ic get
98.Op Ar flags
99.Ar remote-path
100.Op Ar local-path
101.Xc
61e96248 102Retrieve the
0426a3b4 103.Ar remote-path
61e96248 104and store it on the local machine.
105If the local
0426a3b4 106path name is not specified, it is given the same name it has on the
58c54a79 107remote machine. If the
108.Fl P
109flag is specified, then the file's full permission and access time are
110copied too.
0426a3b4 111.It Ic lls Op Ar ls-options Op Ar path
61e96248 112Display local directory listing of either
113.Ar path
114or current directory if
115.Ar path
0426a3b4 116is not specified.
117.It Ic lmkdir Ar path
61e96248 118Create local directory specified by
0426a3b4 119.Ar path .
120.It Ic lpwd
121Print local working directory.
122.It Ic ls Op Ar path
61e96248 123Display remote directory listing of either
124.Ar path
0426a3b4 125or current directory if
126.Ar path
127is not specified.
128.It Ic lumask Ar umask
61e96248 129Set local umask to
0426a3b4 130.Ar umask .
131.It Ic mkdir Ar path
61e96248 132Create remote directory specified by
0426a3b4 133.Ar path .
58c54a79 134.It Xo Ic put
135.Op Ar flags
136.Ar local-path
137.Op Ar local-path
138.Xc
61e96248 139Upload
0426a3b4 140.Ar local-path
141and store it on the remote machine. If the remote path name is not specified,
58c54a79 142it is given the same name it has on the local machine. If the
143.Fl P
144flag is specified, then the file's full permission and access time are
145copied too.
0426a3b4 146.It Ic pwd
147Display remote working directory.
148.It Ic exit
149Quit sftp.
150.It Ic quit
151Quit sftp.
152.It Ic rename Ar oldpath Ar newpath
61e96248 153Rename remote file from
154.Ar oldpath
155to
0426a3b4 156.Ar newpath .
157.It Ic rmdir Ar path
61e96248 158Remove remote directory specified by
0426a3b4 159.Ar path .
160.It Ic rm Ar path
61e96248 161Delete remote file specified by
0426a3b4 162.Ar path .
61e96248 163.It Ic ! Ar command
164Execute
165.Ar command
0426a3b4 166in local shell.
61e96248 167.It Ic !
0426a3b4 168Escape to local shell.
169.It Ic ?
170Synonym for help.
171.El
61e96248 172.Sh AUTHORS
173Damien Miller <djm@mindrot.org>
174.Sh SEE ALSO
175.Xr ssh 1 ,
176.Xr ssh-add 1 ,
177.Xr ssh-keygen 1 ,
0426a3b4 178.Xr sshd 8 ,
179.Xr scp 1
180
This page took 0.097997 seconds and 5 git commands to generate.