~ubuntu-branches/ubuntu/lucid/openssh/lucid

« back to all changes in this revision

Viewing changes to sftp.0

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-10-10 20:10:01 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051010201001-rno2f5bno6e6wo6t
Tags: upstream-4.1p1
ImportĀ upstreamĀ versionĀ 4.1p1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
     active authentication method is used; otherwise it will do so after suc-
23
23
     cessful interactive authentication.
24
24
 
25
 
     The third usage format allows the sftp client to start in a remote direc-
26
 
     tory.
 
25
     The third usage format allows sftp to start in a remote directory.
27
26
 
28
27
     The final usage format allows for automated sessions using the -b option.
29
28
     In such cases, it is usually necessary to configure public key authenti-
78
77
                   GlobalKnownHostsFile
79
78
                   GSSAPIAuthentication
80
79
                   GSSAPIDelegateCredentials
 
80
                   HashKnownHosts
81
81
                   Host
82
82
                   HostbasedAuthentication
83
83
                   HostKeyAlgorithms
85
85
                   HostName
86
86
                   IdentityFile
87
87
                   IdentitiesOnly
 
88
                   KbdInteractiveDevices
88
89
                   LogLevel
89
90
                   MACs
90
91
                   NoHostAuthenticationForLocalhost
109
110
                   VerifyHostKeyDNS
110
111
 
111
112
     -P sftp_server_path
112
 
             Connect directly to a local sftp server (rather than via ssh(1))
 
113
             Connect directly to a local sftp server (rather than via ssh(1)).
113
114
             This option may be useful in debugging the client and server.
114
115
 
115
116
     -R num_requests
131
132
 
132
133
INTERACTIVE COMMANDS
133
134
     Once in interactive mode, sftp understands a set of commands similar to
134
 
     those of ftp(1).  Commands are case insensitive and pathnames may be en-
135
 
     closed in quotes if they contain spaces.
136
 
 
137
 
     bye         Quit sftp.
138
 
 
139
 
     cd path     Change remote directory to path.
 
135
     those of ftp(1).  Commands are case insensitive.  Pathnames that contain
 
136
     spaces must be enclosed in quotes.  Any special characters contained
 
137
     within pathnames that are recognized by glob(3) must be escaped with
 
138
     backslashes (`\').
 
139
 
 
140
     bye     Quit sftp.
 
141
 
 
142
     cd path
 
143
             Change remote directory to path.
140
144
 
141
145
     chgrp grp path
142
 
                 Change group of file path to grp.  grp must be a numeric GID.
 
146
             Change group of file path to grp.  path may contain glob(3) char-
 
147
             acters and may match multiple files.  grp must be a numeric GID.
143
148
 
144
149
     chmod mode path
145
 
                 Change permissions of file path to mode.
 
150
             Change permissions of file path to mode.  path may contain
 
151
             glob(3) characters and may match multiple files.
146
152
 
147
153
     chown own path
148
 
                 Change owner of file path to own.  own must be a numeric UID.
149
 
 
150
 
     exit        Quit sftp.
151
 
 
152
 
     get [flags] remote-path [local-path]
153
 
                 Retrieve the remote-path and store it on the local machine.
154
 
                 If the local path name is not specified, it is given the same
155
 
                 name it has on the remote machine.  If the -P flag is speci-
156
 
                 fied, then the file's full permission and access time are
157
 
                 copied too.
158
 
 
159
 
     help        Display help text.
160
 
 
161
 
     lcd path    Change local directory to path.
 
154
             Change owner of file path to own.  path may contain glob(3) char-
 
155
             acters and may match multiple files.  own must be a numeric UID.
 
156
 
 
157
     exit    Quit sftp.
 
158
 
 
159
     get [-P] remote-path [local-path]
 
160
             Retrieve the remote-path and store it on the local machine.  If
 
161
             the local path name is not specified, it is given the same name
 
162
             it has on the remote machine.  remote-path may contain glob(3)
 
163
             characters and may match multiple files.  If it does and local-
 
164
             path is specified, then local-path must specify a directory.  If
 
165
             the -P flag is specified, then full file permissions and access
 
166
             times are copied too.
 
167
 
 
168
     help    Display help text.
 
169
 
 
170
     lcd path
 
171
             Change local directory to path.
162
172
 
163
173
     lls [ls-options [path]]
164
 
                 Display local directory listing of either path or current di-
165
 
                 rectory if path is not specified.
 
174
             Display local directory listing of either path or current direc-
 
175
             tory if path is not specified.  ls-options may contain any flags
 
176
             supported by the local system's ls(1) command.  path may contain
 
177
             glob(3) characters and may match multiple files.
166
178
 
167
179
     lmkdir path
168
 
                 Create local directory specified by path.
 
180
             Create local directory specified by path.
169
181
 
170
182
     ln oldpath newpath
171
 
                 Create a symbolic link from oldpath to newpath.
172
 
 
173
 
     lpwd        Print local working directory.
174
 
 
175
 
     ls [flags] [path]
176
 
                 Display remote directory listing of either path or current
177
 
                 directory if path is not specified.  If the -l flag is speci-
178
 
                 fied, then display additional details including permissions
179
 
                 and ownership information.  The -n flag will produce a long
180
 
                 listing with user and group information presented numerical-
181
 
                 ly.
182
 
 
183
 
                 By default, ls listings are sorted in lexicographical order.
184
 
                 This may be changed by specifying the -S (sort by file size),
185
 
                 -t (sort by last modification time), or -f (don't sort at
186
 
                 all) flags.  Additionally, the sort order may be reversed us-
187
 
                 ing the -r flag.
 
183
             Create a symbolic link from oldpath to newpath.
 
184
 
 
185
     lpwd    Print local working directory.
 
186
 
 
187
     ls [-1aflnrSt] [path]
 
188
             Display a remote directory listing of either path or the current
 
189
             directory if path is not specified.  path may contain glob(3)
 
190
             characters and may match multiple files.
 
191
 
 
192
             The following flags are recognized and alter the behaviour of ls
 
193
             accordingly:
 
194
 
 
195
             -1      Produce single columnar output.
 
196
 
 
197
             -a      List files beginning with a dot (`.').
 
198
 
 
199
             -f      Do not sort the listing.  The default sort order is lexi-
 
200
                     cographical.
 
201
 
 
202
             -l      Display additional details including permissions and own-
 
203
                     ership information.
 
204
 
 
205
             -n      Produce a long listing with user and group information
 
206
                     presented numerically.
 
207
 
 
208
             -r      Reverse the sort order of the listing.
 
209
 
 
210
             -S      Sort the listing by file size.
 
211
 
 
212
             -t      Sort the listing by last modification time.
188
213
 
189
214
     lumask umask
190
 
                 Set local umask to umask.
191
 
 
192
 
     mkdir path  Create remote directory specified by path.
193
 
 
194
 
     progress    Toggle display of progress meter.
195
 
 
196
 
     put [flags] local-path [remote-path]
197
 
                 Upload local-path and store it on the remote machine.  If the
198
 
                 remote path name is not specified, it is given the same name
199
 
                 it has on the local machine.  If the -P flag is specified,
200
 
                 then the file's full permission and access time are copied
201
 
                 too.
202
 
 
203
 
     pwd         Display remote working directory.
204
 
 
205
 
     quit        Quit sftp.
 
215
             Set local umask to umask.
 
216
 
 
217
     mkdir path
 
218
             Create remote directory specified by path.
 
219
 
 
220
     progress
 
221
             Toggle display of progress meter.
 
222
 
 
223
     put [-P] local-path [remote-path]
 
224
             Upload local-path and store it on the remote machine.  If the re-
 
225
             mote path name is not specified, it is given the same name it has
 
226
             on the local machine.  local-path may contain glob(3) characters
 
227
             and may match multiple files.  If it does and remote-path is
 
228
             specified, then remote-path must specify a directory.  If the -P
 
229
             flag is specified, then the file's full permission and access
 
230
             time are copied too.
 
231
 
 
232
     pwd     Display remote working directory.
 
233
 
 
234
     quit    Quit sftp.
206
235
 
207
236
     rename oldpath newpath
208
 
                 Rename remote file from oldpath to newpath.
209
 
 
210
 
     rm path     Delete remote file specified by path.
211
 
 
212
 
     rmdir path  Remove remote directory specified by path.
 
237
             Rename remote file from oldpath to newpath.
 
238
 
 
239
     rm path
 
240
             Delete remote file specified by path.
 
241
 
 
242
     rmdir path
 
243
             Remove remote directory specified by path.
213
244
 
214
245
     symlink oldpath newpath
215
 
                 Create a symbolic link from oldpath to newpath.
216
 
 
217
 
     version     Display the sftp protocol version.
218
 
 
219
 
     ! command   Execute command in local shell.
220
 
 
221
 
     !           Escape to local shell.
222
 
 
223
 
     ?           Synonym for help.
 
246
             Create a symbolic link from oldpath to newpath.
 
247
 
 
248
     version
 
249
             Display the sftp protocol version.
 
250
 
 
251
     ! command
 
252
             Execute command in local shell.
 
253
 
 
254
     !       Escape to local shell.
 
255
 
 
256
     ?       Synonym for help.
224
257
 
225
258
SEE ALSO
226
 
     ftp(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), ssh_config(5),
227
 
     sftp-server(8), sshd(8)
 
259
     ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
 
260
     ssh_config(5), sftp-server(8), sshd(8)
228
261
 
229
262
     T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
230
263
     filexfer-00.txt, January 2001, work in progress material.
231
264
 
232
 
OpenBSD 3.6                    February 4, 2001                              4
 
265
OpenBSD 3.7                    February 4, 2001                              4