1
|
1
|
|
2
|
|
3 gFTP Users Guide
|
|
4
|
|
5
|
|
6 version 2.0.13 (06/10/2002)
|
|
7 Copyright (C) 1998-2002 Brian Masney <masneyb@gftp.org>
|
|
8
|
|
9
|
|
10 gFTP is a multiprotocol file transfer program for both X Window and the
|
|
11 console. Some of the gFTP features are:
|
|
12
|
|
13 * Downloading files
|
|
14 * Uploading files
|
|
15 * Transfering files between 2 remote servers
|
|
16 * Downloading multiple files in one run
|
|
17 * Downloading entire directories and subdirectories
|
|
18 * Simultaneous downloads using multithreading
|
|
19 * Supports resuming interrupted file transfers
|
|
20 * Bookmarks menu to allow you to quickly connect to remote sites
|
|
21 * FTP and HTTP proxy host support
|
|
22 * Supports the FTP, FXP, HTTP and SSH protocols
|
|
23 * Supports both passive and non-passive file transfers
|
|
24 * Supports UNIX, EPLF, Novell, MacOS, and NT (DOS) style directory listings
|
|
25 * Fully Internationalized. gFTP is currently available in Bulgarian (bg),
|
|
26 Chinese (zh_TW.Big5, zh_CN.GB2312), Czech (cs), Danish (da), Dutch (nl),
|
|
27 Finnish (fi), French (fr), German (de), Italian (it), Korean (ko),
|
|
28 Japanese (ja), Norwegian (no), Polish (pl), Portuguese (pt_BR, br),
|
|
29 Russian (ru), Spanish (es), Swedish (sv) and Turkish (tr)
|
|
30
|
|
31
|
|
32 gFTP is distributed under the terms of the GNU General Public License. You
|
|
33 can read the GPL by clicking on Help->About->License Agreement.
|
|
34
|
|
35 This document is a tutorial on how to use gFTP and describes some of its
|
|
36 functionality. I welcome any changes or additions to this document to make it
|
|
37 better, and easier to read.
|
|
38
|
|
39 CONTENTS
|
|
40
|
|
41 1. Connecting to a remote site
|
|
42 1.1. Connecting using the Open URL button
|
|
43 1.2. Connecting using bookmarks
|
|
44 1.3. Connecting using the toolbar
|
|
45 1.4. Connecting using command line parameters
|
|
46 2. Downloading files
|
|
47 2.1. Traversing remote directory trees
|
|
48 2.2. Downloading a single file
|
|
49 2.3. Downloading multiple files
|
|
50 2.4. Downloading from multiple sites
|
|
51 2.5. Simultaneous downloads from multiple sites
|
|
52 2.6. Differences between downloading in ASCII and BINARY mode
|
|
53 3. Uploading files
|
|
54 3.1. Selecting the remote directory
|
|
55 3.2. Working with the remote file tree
|
|
56 3.3. Uploading a single file
|
|
57 3.4. Uploading multiple files
|
|
58 3.5. Passive and non passive file transfers
|
|
59 4. Transfering files between remote sites (FXP)
|
|
60 4.1. Connecting to the receiving site
|
|
61 4.2. Selecting the receiving directory
|
|
62 4.3. Working with the receiving file tree
|
|
63 4.4. Connecting to the sending site
|
|
64 4.5. Traversing the sending site directory tree
|
|
65 4.6. Selecting files from the sending site
|
|
66 5. Resuming transfers
|
|
67 5.1. Manual resumes
|
|
68 5.2. Automatic resumes
|
|
69 6. FTP password and user id
|
|
70 6.1. Anonymous FTP
|
|
71 6.2. Secure FTP password and user id
|
|
72 6.3. FTP security concerns
|
|
73 7. Local directory
|
|
74 7.1. Specifying the local directory
|
|
75 7.2. Working in the local directory
|
|
76 7.3. Formating the local directory window
|
|
77 8. Remote directory
|
|
78 8.1. Specifying the remote directory
|
|
79 8.2. Formating the remote directory window
|
|
80 9. Transfer window
|
|
81 9.1. Queue
|
|
82 9.2. Progress
|
|
83 9.3. Formating the transfer window
|
|
84 10. Log and log window
|
|
85 10.1. Log commands
|
|
86 10.2. Formating the log window
|
|
87 11. Bookmarks
|
|
88 11.1. Using a bookmark entry
|
|
89 11.2. Adding a bookmark
|
|
90 11.3. Editing bookmarks
|
|
91 11.4. Bookmark passwords
|
|
92 11.5. Bookmark security concerns
|
|
93 12. FTP protocol
|
|
94 12.1 Invoking FTP
|
|
95 13. HTTP protocol
|
|
96 13.1. Invoking HTTP
|
|
97 14. SSH protocol
|
|
98 14.1. Configuring SSH
|
|
99 14.2. Invoking SSH
|
|
100 14.3. SSH and SSH2
|
|
101 14.4 Invoking SSH
|
|
102 15. Miscellaneous commands
|
|
103 15.1. Window
|
|
104 15.2. SITE commands
|
|
105 15.3. Bidirectional transfers
|
|
106 15.4. Clear cache
|
|
107 15.5. Compare Windows
|
|
108 15.6. Disconnect
|
|
109 16. Using gftp-text (the command line version of gFTP)
|
|
110 16.1. Downloading entire directories and subdirectories
|
|
111 16.2. Documentation for gftp-text
|
|
112 17. Using gftp-gtk (the GUI version of gFTP)
|
|
113 18. Configuring gFTP
|
|
114 18.1. Proxy host setup
|
|
115 18.2. Proxy security concerns
|
|
116 18.3. Configuring file extensions
|
|
117 18.4. Desktop icon
|
|
118 19. Staying in touch
|
|
119 19.1. gFTP bugs
|
|
120 19.2. gFTP mailing list
|
|
121 19.3. gFTP home page and FAQ
|
|
122 20. Legal section
|
|
123 20.1. Copying gFTP
|
|
124 20.2. Warrenty
|
|
125 20.3. Source code
|
|
126
|
|
127
|
|
128 1. Connecting to a remote site
|
|
129
|
|
130 This section describes the various ways that you can connect to a remote
|
|
131 site using gFTP.
|
|
132
|
|
133 1.1. Connecting using the Open URL button
|
|
134
|
|
135 On the top line of gFTP you will see the word "Remote". Click on Remote
|
|
136 and you will get a pop down menu. Click on "Open URL" and you will get a
|
|
137 command line which has several uses. You can enter a URL name in this
|
|
138 command line in a manner very similar to the way it works in most web
|
|
139 browsers. You can type in the URL, paste the URL from the clipboard, or Drag
|
|
140 and Drop a URL from another application (say Mozilla). gFTP will automatically
|
|
141 disconnect from the site that you are connected to, if any, and connect to the
|
|
142 site you specified in the Open URL window.
|
|
143
|
|
144 When you click on the Open URL button, several things are checked
|
|
145 (in the following order):
|
|
146
|
|
147 - If you are already connected to a site and you click the Open URL
|
|
148 button, you will be disconnected from the site that you are
|
|
149 connected to.
|
|
150
|
|
151 - If you have a hostname entered on the toolbar, it will connect to
|
|
152 that host.
|
|
153
|
|
154 - If the above 2 conditions are false, then it will bring up the
|
|
155 Open URL dialog window where you can enter a FTP URL to connect to.
|
|
156 FTP URL's can look like some of the following:
|
|
157
|
|
158 ftp://ftp.myhostname.com/pub (this will log in as anonymous)
|
|
159 ftp://user@ftp.myhostname.com/pub (log in as user. You will be
|
|
160 prompted for a password)
|
|
161 ftp://user:password@ftp.myhostname.com/pub (log in as user/password)
|
|
162
|
|
163 1.2. Connecting using bookmarks
|
|
164
|
|
165 Bookmarks are the easiest way to connect to a remote site. Click on
|
|
166 Bookmarks and select which site you want to connect to from the pop down menu.
|
|
167 If gFTP doesn't have a password for the site you are trying to connect to, it
|
|
168 will prompt you for one. Due to security reasons, gFTP will not save a password
|
|
169 in your bookmark file when gFTP obtains the password from a prompt.
|
|
170
|
|
171 1.3. Connecting using the toolbar
|
|
172
|
|
173 You can use the toolbar at the top of the window to connect to a remote
|
|
174 site. The only mandatory field to fill in is the hostname. You can type in
|
|
175 the hostname or you can copy it from the clipboard. When entering a hostname in
|
|
176 the toolbar do not include a directory name and file name. If you do
|
|
177 enter a complete URL gFTP will eventually give you an error message: "Cannot
|
|
178 look up hostname (hostname): Name or service not known". If you have a complete
|
|
179 URL to enter or paste, a better method would be to go to section 1.1 and
|
|
180 use the Open URL button. The way to handle a complete URL name on the toolbar
|
|
181 is to split up the URL with the hostname in the Host field and the directory
|
|
182 and/or file name in the directory name field on the right side of the screen
|
|
183 just above the message that says "Not connected*".
|
|
184
|
|
185 All of the other fields in the toolbar are optional:
|
|
186
|
|
187 If you don't fill in the port, it will default to the ftp port in your
|
|
188 /etc/services file (usually port 21).
|
|
189
|
|
190 If you don't fill in a username, it will default to logging you in as
|
|
191 anonymous.
|
|
192
|
|
193 Once you have all your information filled in, you can either
|
|
194 hit enter in any of the host, port, user or password fields and gFTP will
|
|
195 connect you to the remote site.
|
|
196
|
|
197 1.4. Connecting using command line parameters
|
|
198
|
|
199 You can start the GUI version of gFTP by using a KDE desktop application link
|
|
200 or a Gnome desktop application link. If you want to go to a specific site
|
|
201 immediately on startup you can tell gFTP to connect to that site by typing in
|
|
202 that site's URL after the gftp command. For example:
|
|
203 gftp ftp://ftp.myhostname.com/pub
|
|
204
|
|
205 gftp-gtk is a the name of the GUI version of gFTP. The command gftp is
|
|
206 actually a script which decides whether, under the circumstances, to launch
|
|
207 gftp-text or gftp-gtk. If gftp does not launch the version that you want you
|
|
208 can use gftp-text or gftp-gtk.
|
|
209
|
|
210
|
|
211 2. Downloading files
|
|
212
|
|
213 Once you have successfully connected to a remote site you can then
|
|
214 select the files that you want and download them. This section describes
|
|
215 several ways that you can select and download files in gFTP.
|
|
216
|
|
217 2.1. Traversing remote directory trees
|
|
218
|
|
219 In the center of the right half of the gFTP screen you will find two windows.
|
|
220 The upper window shows what remote directory you are currently connected to.
|
|
221 The lower window is a listing of that directory's contents. To open a
|
|
222 directory, double click on the directory name. To go back up to a parent
|
|
223 directory double click on the .. at the top of the direcory listing.
|
|
224 Be careful that you are not double clicking on a file name unless you intend to
|
|
225 download that file. You can also change directories by clicking on
|
|
226 Remote->Change Directory.
|
|
227
|
|
228 You can control which files are shown in the remote directory window by
|
|
229 clicking on Remote->Change Filespec. Then enter the filespec that you would
|
|
230 like to see. For example you could enter *.rpm to eliminate everything but rpm
|
|
231 files in the directory listing.
|
|
232
|
|
233 You can also control which files are shown in the remote directory window by
|
|
234 clicking on Remote->Show Selected. Then the remote directory will only show
|
|
235 the file names of files that are also on the transfer queue.
|
|
236
|
|
237 Almost every FTP site limits the portion of their directory tree that you
|
|
238 can access. When you double click on the .. at the top of the directory
|
|
239 listing and nothing happens that means that you are as low in the directory
|
|
240 tree as you are allowed to go.
|
|
241
|
|
242 2.2. Downloading a Single File
|
|
243
|
|
244 To download a file double click on the file name.
|
|
245 Or
|
|
246 Drag and Drop a file name from the remote directory window to the local
|
|
247 directory window.
|
|
248 Or
|
|
249 Drag and Drop a file name from a web browser (such as Opera) to the
|
|
250 gFTP local directory window.
|
|
251 Or
|
|
252 Click on the file name and click on the left arrow near the center of the
|
|
253 screen.
|
|
254
|
|
255 2.3. Downloading multiple files
|
|
256
|
|
257 If you want to specify several files to download one after the other then you
|
|
258 must first throw the "Start file transfer" toggle off. What this means is that
|
|
259 when the toggle is on, gFTP starts downloading immediately when you select a
|
|
260 file. When the toggle is off you can stack up as many selections as you want
|
|
261 on the transfer queue without gFTP starting to download. You can use any of the
|
|
262 selection methods described in the previous section on downloading single files.
|
|
263 You can also select several files at once by using some of the commands on the
|
|
264 Remote menu. Click on Remote. Click on the appropriate command(s) and then
|
|
265 click on left arrow. The commands are:
|
|
266
|
|
267 Select All Files - select every file in the current directory
|
|
268
|
|
269 Select All - select every file in the current directory and every file in
|
|
270 every subdirectory of the current directory
|
|
271
|
|
272 Deselect All - erase your selections and start over
|
|
273
|
|
274 Then when you have finished selecting files you turn on the "Start file
|
|
275 transfer" toggle on and gFTP will begin working its way through all of the
|
|
276 downloads, one by one. To turn the toggle on click on
|
|
277 FTP->Options->Start file transfers->Apply->OK.
|
|
278
|
|
279 2.4. Downloading from multiple sites
|
|
280
|
|
281 One of the features of gFTP is that you can queue download files from
|
|
282 different remote sites. Once you have a file(s) download started, you can
|
|
283 safely disconnect from the remote site by clicking on Remote->Disconnect, and
|
|
284 it will not harm the download in progress. You can then connect to another
|
|
285 remote site, and select another file(s) to download. gFTP will add the new
|
|
286 selections to the transfer queue and download all of the files in the queue
|
|
287 sequentially.
|
|
288
|
|
289 2.5. Simultaneous downloads from multiple sites
|
|
290
|
|
291 In the previous section I described how to queue up downloads from multiple
|
|
292 remote sites. gFTP also has the ability to download from multiple sites
|
|
293 simultaneously. Whether gFTP does the downloads sequentially or in parallel
|
|
294 is controlled by the "Do one transfer at a time" button. To find this button:
|
|
295 click on FTP->Options. When the "Do one transfer at a time" button
|
|
296 is on then gFTP will download files sequentially. When the "Do one transfer at
|
|
297 a time" button is off then gFTP will open up a connection to each remote site
|
|
298 listed in the transfer queue and do as many downloads simultaneously as there
|
|
299 are remote sites in the transfer queue.
|
|
300
|
|
301 Whether simultaneous downloading is an advantage to you or simply a confusion
|
|
302 factor depends on how you are connected to the Internet. If you are connected
|
|
303 to an ISP with a dial-up modem then simultaneous downloading buys you nothing,
|
|
304 you should leave the "Do one transfer at a time" button on. If you are on a
|
|
305 high speed local network connected to a proxy host which is attached to
|
|
306 multiple trunk lines then simultaneous downloads could save you a lot of
|
|
307 download time. If you are not on a dial-up modem and haven't a clue about your
|
|
308 network line configuration I suggest that you turn off the "Do one transfer at a
|
|
309 time" button and give gFTP a real workout as a speed test. If you get any
|
|
310 interesting results let me know.
|
|
311
|
|
312 2.6. Differences between downloading in ASCII and BINARY mode
|
|
313
|
|
314 If you download a file in binary mode, gFTP will transfer the file as is,
|
|
315 making no modifications to it. But, if you are downloading text files, you
|
|
316 should consider downloading them as ascii (unless you're downloading them from
|
|
317 another unix machine, in which case either ascii or binary works fine). The
|
|
318 problem is that DOS and Unix use different methods to show end of line.
|
|
319
|
|
320 In DOS, the lines in text files will have a carriage return and line feed
|
|
321 after them:
|
|
322
|
|
323 This is a line in a DOS text file\r\n
|
|
324
|
|
325 But, in unix the file will just be stored with a line feed at the end:
|
|
326
|
|
327 This is a line in a UNIX text file\n
|
|
328
|
|
329 If you download a text file from a DOS machine as binary, and open it up in
|
|
330 an Unix program like vi, you will see some weird Ms at the end of each
|
|
331 line. These are the carriage returns. To get around this, download the file in
|
|
332 ascii mode, and gFTP will do the proper conversion for you. You can change
|
|
333 between ascii and binary in the ftp menu.
|
|
334
|
|
335
|
|
336 3. Uploading files
|
|
337
|
|
338 Uploading is a lot simpler if you collect all of the files that you want to
|
|
339 upload in the local directory before you connect to a remote site. The local
|
|
340 directory is the directory you specified in FTP->Options->Startup Directory.
|
|
341
|
|
342 Once you have successfully connected to a remote site you can then
|
|
343 select the files that you want and upload them to a specific place on the
|
|
344 remote site. This section describes several ways that you can select and upload
|
|
345 files in gFTP.
|
|
346
|
|
347 3.1. Selecting the remote directory
|
|
348
|
|
349 In the center of the right half of the gFTP screen you will find two windows.
|
|
350 The upper window shows what remote directory you are currently connected to.
|
|
351 The lower window is a listing of that directory's contents. To open a
|
|
352 directory, double click on the directory name. To go back up to a parent
|
|
353 directory double click on the .. at the top of the direcory listing.
|
|
354 Be careful that you are not double clicking on a file name unless you intend to
|
|
355 download that file.
|
|
356
|
|
357 You can control which files are shown in the remote directory window by
|
|
358 clicking on Remote->Change Filespec. Then enter the filespec that you would
|
|
359 like to see. For example you could enter *.rpm to eliminate everything but rpm
|
|
360 files in the directory listing.
|
|
361
|
|
362 You can also control which files are shown in the remote directory window by
|
|
363 clicking on Remote->Show Selected. Then the remote directory will only show
|
|
364 the file names of files that are also on the transfer queue.
|
|
365
|
|
366 Almost every FTP site limits the portion of their directory tree that you
|
|
367 can access. When you double click on the .. at the top of the directory
|
|
368 listing and nothing happens that means that you are as low in the directory
|
|
369 tree as you are allowed to go.
|
|
370
|
|
371 3.2. Working with the remote file tree
|
|
372
|
|
373 Uploading often consists of more than simply copying a file to a remote site.
|
|
374 You may have to create or rearrange portions of the file tree on the remote
|
|
375 site. Right click on a blank spot in the directory window for the remote site
|
|
376 and you will get a pop up menu which contains some commands for manipulating the
|
|
377 remote site file tree. These commands include:
|
|
378
|
|
379 Delete - delete a remote file or directory
|
|
380
|
|
381 Make Directory - create a directory on the remote site
|
|
382
|
|
383 Rename - rename a remote file or directory
|
|
384
|
|
385 Edit - edit a remote file using the editor specified in FTP->Options->Edit
|
|
386 program
|
|
387
|
|
388 View - view a remote file using the editor specified in FTP->Options->View
|
|
389 program
|
|
390
|
|
391 Chmod - change the attributes of a remote file or directory
|
|
392
|
|
393 3.3. Uploading a single file
|
|
394
|
|
395 To upload a file double click on the file name in the local directory window.
|
|
396 Or
|
|
397 Drag and Drop a file name from the local directory window to the remote
|
|
398 directory window.
|
|
399 Or
|
|
400 Click on the file name in the local directory and click on the right arrow
|
|
401 near the center of the screen.
|
|
402 Or
|
|
403 Drag and Drop a file name from a file manager such as Midnight Commander to
|
|
404 the gFTP remote directory window.
|
|
405
|
|
406 3.4. Uploading multiple files
|
|
407
|
|
408 If you want to specify several files to upload one after the other then you
|
|
409 must first throw the "Start file transfer" toggle off. What this means is that
|
|
410 when the toggle is on, gFTP starts uploading immediately when you select a
|
|
411 file. When the toggle is off you can stack up as many selections as you want
|
|
412 on the transfer queue without gFTP starting to upload. You can use any of the
|
|
413 methods described in the previous section to select files to upload. You can
|
|
414 also select several files at once by using some of the commands on the Local
|
|
415 menu. Click on Local. Click on the appropriate command and then click on right
|
|
416 arrow. The commands are:
|
|
417
|
|
418 Select All Files - select every file in the current directory
|
|
419
|
|
420 Select All - select every file in the current directory and every file in
|
|
421 every subdirectory of the current directory
|
|
422
|
|
423 Deselect All - erase your selections and start over
|
|
424
|
|
425 Then when you have finished selecting files you turn the "Start file
|
|
426 transfer" toggle on and gFTP will begin working its way through all of the
|
|
427 uploads, one by one. To turn the toggle on click on FTP->Options->Start file
|
|
428 transfers->Apply->OK.
|
|
429
|
|
430 3.5. Passive and non passive file transfers
|
|
431
|
|
432 When uploading files to a server you will find that some servers support
|
|
433 passive file transfers and others do not. Those sites which do not support
|
|
434 passive file transfers usually block them because they consider passive file
|
|
435 transfers too insecure. When you run into a site that does not support
|
|
436 passive file transfers you can try toggling passive file transfers off. You can
|
|
437 find the passive file transfers toggle by clicking on File->Options. Click on
|
|
438 the Passive file transfers button to toggle passive file transfers on and off.
|
|
439
|
|
440 The most common error message given out by a site that does not support
|
|
441 passive transfers is: Cannot create a data connection: Connection refused
|
|
442
|
|
443
|
|
444 4. Transfering files between remote sites (FXP)
|
|
445
|
|
446 The File Transfer Protocol has a subsection called File eXchange Protocol.
|
|
447 gFTP can use FXP to transfer files between two remote sites. gFTP will set up a
|
|
448 direct connection between the two remote sites so that the transfer proceeds
|
|
449 from one remote site to the other without your machine acting as an
|
|
450 intermediary. In order for gFTP to do a FXP transfer both remote sites must
|
|
451 support FXP transfers. Also the receiving site must support passive transfers
|
|
452 and the sending site must allow gFTP to open a port to the receiving site. If
|
|
453 you cannot get the two remote sites to do a FXP transfer then the fall back
|
|
454 method is to download the file(s) from the source remote site to your machine
|
|
455 and then upload the file(s) to the receiving remote site. The fall back method
|
|
456 will take at least twice as long as a FXP transfer and perhaps as much as an
|
|
457 order of magnitude longer.
|
|
458
|
|
459 The next several sections describe the sequence of actions that you must
|
|
460 do in order to start a FXP transfer. This explanation of FXP will assume that
|
|
461 you know how to use gFTP to download and upload files. Check the sections on
|
|
462 downloads and uploads to fill in the details missing in the FXP explanation.
|
|
463
|
|
464 4.1. Connecting to the receiving site
|
|
465
|
|
466 You connect to the receiving remote site the same as if you are doing an
|
|
467 upload to that site.
|
|
468
|
|
469 4.2. Selecting the receiving directory
|
|
470
|
|
471 You select the receiving remote directory the same as if you are doing an
|
|
472 upload to that directory.
|
|
473
|
|
474 4.3. Working with the receiving file tree
|
|
475
|
|
476 You manipulate the receiving remote file tree the same as if you are doing
|
|
477 an upload to that site.
|
|
478
|
|
479 4.4. Connecting to the sending site
|
|
480
|
|
481 On the top line of gFTP you will see the word "Local". Click on Local
|
|
482 and you will get a pop down menu. Click on "Open URL" and you will get a
|
|
483 command line window. You can enter an URL name in this command line in a manner
|
|
484 very similar to the way it works in most web browsers. You can type in the
|
|
485 URL, paste the URL from the clipboard, or Drag and Drop an URL from another
|
|
486 application (say Konqueror). gFTP will connect to the site you specify in the
|
|
487 Open URL window.
|
|
488
|
|
489 4.5. Traversing the sending site directory tree
|
|
490
|
|
491 In the center of the left half of the gFTP screen you will find two windows.
|
|
492 The upper window shows what remote sending site directory you are currently
|
|
493 connected to. The lower window is a listing of that directory's contents. To
|
|
494 open a directory, double click on the directory name. To go back up to a parent
|
|
495 directory double click on the .. at the top of the direcory listing. Be
|
|
496 careful that you are not double clicking on a file name unless you intend to
|
|
497 transfer that file to the receiving remote site. You can also change
|
|
498 directories by clicking on Local->Change Directory.
|
|
499
|
|
500 You can control which files are shown in the left directory window by
|
|
501 clicking on Local->Change Filespec. Then enter the filespec that you would
|
|
502 like to see. For example you could enter *.deb to eliminate everything but
|
|
503 Debian files in the directory listing.
|
|
504
|
|
505 You can also control which files are shown in the remote directory window by
|
|
506 clicking on Local->Show Selected. Then the local directory will only show
|
|
507 the file names of files that are also on the transfer queue.
|
|
508
|
|
509 Almost every FTP site limits the portion of their directory tree that you
|
|
510 can access. When you double click on the .. at the top of the directory
|
|
511 listing and nothing happens that means that you are as low in the directory
|
|
512 tree as you are allowed to go.
|
|
513
|
|
514 4.6. Selecting files from the sending site
|
|
515
|
|
516 If you want to specify several files to transfer one after the other then you
|
|
517 must first throw the "Start file transfer" toggle off by clicking on
|
|
518 FTP->Options->Start file transfers->Apply->OK. If you are only transfering a
|
|
519 single file then you can ignore the "Start file transfer" toggle.
|
|
520
|
|
521 To transfer a file double click on the file name in the left directory
|
|
522 window.
|
|
523 Or
|
|
524 Drag and Drop a file name from the left directory window to the right
|
|
525 directory window.
|
|
526 Or
|
|
527 Click on the file name in the left directory window and click on the right
|
|
528 arrow near the center of the screen.
|
|
529
|
|
530 Select as many files as you want from the left directory window and gFTP will
|
|
531 place them on the queue. You can traverse the left directory window while you
|
|
532 are selecting files. You can also select several files at once by using some
|
|
533 of the commands in the Local menu. Click on Local. Click on the appropriate
|
|
534 command and then click on right arrow. The commands are:
|
|
535
|
|
536 Select All Files - select every file in the current directory
|
|
537
|
|
538 Select All - select every file in the current directory and every file in
|
|
539 every subdirectory of the current directory
|
|
540
|
|
541 Deselect All - erase your selections and start over
|
|
542
|
|
543 When you are finished selecting files then toggle "Start file transfer" on
|
|
544 and gFTP will start transferring the files in the queue.
|
|
545
|
|
546
|
|
547 5. Resuming transfers
|
|
548
|
|
549 The File Transfer Protocol has the ability to restart an interrupted transfer
|
|
550 at the point where it left off. gFTP supports the resume function. If the
|
|
551 remote site you are dealing with also supports resume (most FTP sites do, HTTP
|
|
552 sites do not) then you can resume an interrupted transfer.
|
|
553
|
|
554 5.1. Manual resumes
|
|
555
|
|
556 You can interrupt a transfer in the middle by exiting from gFTP and later
|
|
557 resume the transfer at the point where it left off. To resume a download start
|
|
558 up the download just like any other download. gFTP will find the partially
|
|
559 downloaded file in the local download directory and then ask you whether to
|
|
560 resume the download or to start all over. Choose resume. Then gFTP will
|
|
561 connect to the remote site and negotiate with the remote site to resume the
|
|
562 download at the point where it was interrupted.
|
|
563
|
|
564 Uploads and FXP transfers can be resumed in a manner analogous to resuming a
|
|
565 download.
|
|
566
|
|
567 The only sticking point with exiting gFTP and then starting it up again is
|
|
568 that you will lose the queue. gFTP erases the queue when you exit and when you
|
|
569 start up again you will have to rebuild the queue. If you are doing a single
|
|
570 file transfer then erasing the queue is unimportant.
|
|
571
|
|
572 Resume is a well defined Internet protocol which requires the cooperation of
|
|
573 both gFTP and the server software. Occasionally you will run into a server
|
|
574 which does not support the Resume protocol. In the case of downloads all is
|
|
575 not necessarily lost. gFTP will try to resume any download when it finds the
|
|
576 file name in the local download directory. You might be able to salvage the
|
|
577 download by finding another remote site to download that same filename from, a
|
|
578 site that supports the FTP Resume protocol.
|
|
579
|
|
580 5.2. Automatic resumes
|
|
581
|
|
582 If gFTP is in the process of transferring some files and the connection closes
|
|
583 for some reason, gFTP will try to reconnect again and continue with the file
|
|
584 transfer where it left off. You can set how many times to reconnect and how
|
|
585 long to wait in the options dialog. In order to specify reasonable reconnect
|
|
586 options you need to understand some of the things that can go wrong with a
|
|
587 transfer.
|
|
588
|
|
589 The most common cause of transfer problems is an overloaded FTP server. When
|
|
590 a server becomes overloaded there will be times when the server just can't get
|
|
591 around to passing gFTP the next block of data (or receiving the data in the
|
|
592 case of an upload). In the gFTP progress window you will get a message that the
|
|
593 transfer is stalled. If the transfer is stalled for over 30 seconds gFTP will
|
|
594 time out the transfer and disconnect. (Don't mess with the Read timeout Option
|
|
595 unless you know what you are doing. You can get timeouts for a lot of other
|
|
596 reasons that an overloaded server.) gFTP then waits the time interval specified
|
|
597 in FTP-Option and then reconnects.
|
|
598
|
|
599 Some servers recognize when they are overloaded and begin deliberately
|
|
600 disconnecting clients until they get back down to the maximum number of
|
|
601 transfers that they can reasonably serve. If gFTP gets disconnected it waits
|
|
602 the time interval specified in FTP->Options and then reconnects. These servers
|
|
603 sometimes remember who they have just bounced off and if you try to reconnect
|
|
604 immediately they may tell gFTP to stop trying to automatically reconnect. So in
|
|
605 the Options (Ftp->Options->Network->Retry sleep time) you want to wait just long
|
|
606 enough that the busy server will have forgotten you and then reconnect. The
|
|
607 gFTP default is 15 seconds.
|
|
608
|
|
609 The other reconnect Option that you are interested in is Connect retries
|
|
610 (Ftp->Options->Network->Connect retries). Connect retries is the number of
|
|
611 times that gFTP will reconnect before giving up altogather. There two ways to
|
|
612 approach this option:
|
|
613
|
|
614 If gFTP has to keep reconnecting to a remote server then the transfer can be
|
|
615 very slow. You might want to switch another remote server which is faster.
|
|
616 If the file name on the new server is exactly the same as the file name on the
|
|
617 previous server then you can resume a download at whatever point you got to on
|
|
618 the first server. In this case set FTP->Options->Connect retries to 3, which is
|
|
619 the gFTP default.
|
|
620
|
|
621 If you want to keep chugging away at the transfer until it finishes, no
|
|
622 matter what, then set FTP->Options->Connect retries to 0.
|
|
623
|
|
624
|
|
625 6. FTP password and user id
|
|
626
|
|
627 The standard File Transfer Protocol requires the use of a user id and a
|
|
628 password. gFTP will always use a user id and a password for each FTP
|
|
629 connection.
|
|
630
|
|
631 6.1. Anonymous FTP
|
|
632
|
|
633 Many FTP server sites are public sites which make their files freely
|
|
634 available to anyone who wants to download them. To get around the nuisance of
|
|
635 user ids and passwords public sites use the standard anonymous FTP protocol.
|
|
636 gFTP uses an user id of anonymous and a password that looks like a valid email
|
|
637 address (internet@linux.local). You can change the anonymous email
|
|
638 address/password by clicking on FTP->Options->General and changing the Email
|
|
639 address field.
|
|
640
|
|
641 6.2. Secure FTP password and user id
|
|
642
|
|
643 Some FTP server sites are private sites which are very selective about who
|
|
644 can download files from that site. Almost all upload sites are selective.
|
|
645 Private sites insist that you obtain a user id and a password, perhaps even
|
|
646 pay money for them. Then you have to use that particular user id and password
|
|
647 to access the private FTP site.
|
|
648
|
|
649 If you want to save your password for a bookmarked site in the bookmark file,
|
|
650 you should read the section on security concerns first. Then if you still
|
|
651 want gFTP to remember your bookmark entry passwords there are two ways to do it.
|
|
652 The easier way is to add the password manually to the bookmark file
|
|
653 (/home/user/.gftp/bookmarks) using a text editor. Or you can have gFTP add
|
|
654 the bookmark password by: click on Edit bookmarks, right click on the
|
|
655 appropriate bookmark entry, click on Properties, and turn off "Log in as
|
|
656 ANONYMOUS". Then gFTP will make the Username and Password fields available
|
|
657 for editing.
|
|
658
|
|
659 You can tell gFTP not to use anonymous FTP by entering the user name in the
|
|
660 URL. For example:
|
|
661
|
|
662 ftp://user@ftp.myhostname.com/pub (log in as user. gFTP will prompt you
|
|
663 for a password)
|
|
664
|
|
665 You can give gFTP both the user name and password in the URL. For example:
|
|
666
|
|
667 ftp://user:password@ftp.myhostname.com/pub (log in as user/password)
|
|
668
|
|
669
|
|
670 6.3. FTP security concerns
|
|
671
|
|
672 Some private FTP sites require you to use a valid email address as either the
|
|
673 user id or the password. An organization with a reputable name to protect will
|
|
674 not spam your email address. With other people or organizations you are
|
|
675 vunerable to spamming. You might consider opening a free email account
|
|
676 somewhere and use it for spam bait only.
|
|
677
|
|
678
|
|
679 7. Local directory
|
|
680
|
|
681 The local directory is the directory on your computer from which you will
|
|
682 upload files or which you will use to receive downloaded files. A window
|
|
683 showing the local directory is located in the middle left of the gFTP screen.
|
|
684
|
|
685 7.1. Specifying the local directory
|
|
686
|
|
687 You can set the default local directory by clicking on FTP->Options and then
|
|
688 typing in the local directory path into Startup Directory.
|
|
689 Or
|
|
690 You can change the local directory by entering the new name into the small
|
|
691 window just above the local directory window. Your new name will be entered
|
|
692 into the local directory history but the new name will not replace the
|
|
693 default name in Options.
|
|
694 Or
|
|
695 You can select a name from the local directory history list. Click on the
|
|
696 down arrow to the right of the local directory name and then click on the
|
|
697 history entry you want to use. Your new name will be entered into the local
|
|
698 directory history but the new name will not replace the
|
|
699 default name in Options.
|
|
700 Or
|
|
701 You can traverse the local directory tree by clicking on the directory names
|
|
702 in the local directory window. To open a directory, double click on the
|
|
703 directory name. To go back up to a parent directory double click on the ..
|
|
704 at the top of the file listing. Be careful that you are not double clicking
|
|
705 on a file name unless you intend to upload that file.
|
|
706
|
|
707 7.2. Working in the local directory
|
|
708
|
|
709 There are several operations that gFTP can perform in the local directory.
|
|
710 You can perform the following operations regardless of whether you are connected
|
|
711 to a remote site or not:
|
|
712
|
|
713 Make a directory - Right click on a blank area in the local directory window.
|
|
714 Then left click on Make Directory. Enter the new directory name in the
|
|
715 pop up window and click on Create.
|
|
716
|
|
717 Delete a directory or filename - Right click on the directory or filename.
|
|
718 Then left click on Delete.
|
|
719
|
|
720 Rename a directory or filename - Right click on the directory or filename.
|
|
721 Then left click on Rename. Enter the new name in the pop up window and
|
|
722 click on Rename.
|
|
723
|
|
724 Change the attributes of a directory or filename - Right click on the
|
|
725 directory or filename. Then left click on Chmod. Set the attributes in
|
|
726 the pop up menu and click on Change.
|
|
727
|
|
728 Edit a file - Right click on the filename. Then left click on Edit. The
|
|
729 file will be opened in the editor that you specified FTP->Options->Edit
|
|
730 program.
|
|
731
|
|
732 View a file - Right click on the filename. Then left click on View. The
|
|
733 file will be opened in the program that you specified FTP->Options->View
|
|
734 program.
|
|
735
|
|
736 Refresh the listing - Right click on a blank area in the local directory
|
|
737 window. Then left click on Refresh. gFTP will refresh the local
|
|
738 directory listing.
|
|
739
|
|
740 Change the filespec - Click on Local->Change Filespec. Then enter the
|
|
741 filespec that you would like to see. For example you could enter *.html to
|
|
742 eliminate everything but html files in the directory listing.
|
|
743
|
|
744
|
|
745 7.3. Formating the local directory window
|
|
746
|
|
747 You can arrange the format of the local directory window by sliding the
|
|
748 Filename, Size, User, Group, Date, and Attribs labels to wherever you want them.
|
|
749
|
|
750 You can change the overall size of the local directory window by using a text
|
|
751 editor to change the config file (/home/user/.gftp/gftrc). The parameters which
|
|
752 control the local directory window size are listbox_local_width and
|
|
753 listbox_file_height.
|
|
754
|
|
755
|
|
756 8. Remote directory
|
|
757
|
|
758 The remote directory is the directory on a remote site from which you will
|
|
759 download files or which you will use to receive uploaded files. A window
|
|
760 showing the remote directory is located in the middle right of the gFTP screen.
|
|
761
|
|
762 8.1. Specifying the remote directory
|
|
763
|
|
764 When you enter a URL in the Remote->Open URL window, gFTP shows that portion
|
|
765 of the URL which designates a remote site directory name in the small window
|
|
766 just above the remote directory window.
|
|
767
|
|
768 8.2. Formating the remote directory window
|
|
769
|
|
770 You can arrange the format of the remote directory window by sliding the
|
|
771 Filename, Size, User, Group, Date, and Attribs labels to wherever you want them.
|
|
772
|
|
773 You can change the overall size of the remote directory window by using a
|
|
774 text editor to change the config file (/home/user/.gftp/gftrc). The parameters
|
|
775 which control the remote directory window size are listbox_remote_width and
|
|
776 listbox_file_height.
|
|
777
|
|
778
|
|
779 9. Transfer window
|
|
780
|
|
781 The transfer window is the second window from the bottom. It shows the queue
|
|
782 and the progress of the current file transfer(s).
|
|
783
|
|
784 9.1. Queue
|
|
785
|
|
786 The left hand side of the transfer window shows the queue of transfers to be
|
|
787 done. You can stack several transfers in the queue and gFTP will work its way
|
|
788 through the queue transferring the files in the order that they were entered in
|
|
789 the queue. Whether gFTP does the transfers sequentially or in parallel is
|
|
790 controlled by the "Do one transfer at a time" button. To find this button:
|
|
791 click on FTP->Options. When the "Do one transfer at a time" button is on then
|
|
792 gFTP will transfer files sequentially. When the "Do one transfer at a time"
|
|
793 button is off then gFTP will open up a connection to each remote site listed
|
|
794 in the transfer queue and do as many transfers in parallel as there are remote
|
|
795 sites in the transfer queue.
|
|
796
|
|
797 You can manipulate the entries on the transfers queue by first clicking on
|
|
798 the entry to highlight it and then clicking on Transfers. The Transfers pop up
|
|
799 menu makes these commands available:
|
|
800
|
|
801 Stop Transfer - highlight the queue entry for the file currently being
|
|
802 transferred and then click on Transfers->Stop Transfer
|
|
803
|
|
804 Start Transfer - highlight the queue entry for the file you want to
|
|
805 transfer next and then click on Transfers->Start
|
|
806 Transfer
|
|
807
|
|
808 Move File Up - move the file up one position in the queue
|
|
809
|
|
810 Move File Down - move the file down one position in the queue
|
|
811
|
|
812 Remove File - delete the file from the queue
|
|
813
|
|
814 Skip Current File - leave the file name on the queue but do not transfer the
|
|
815 file
|
|
816
|
|
817 gFTP does not save the transfer queue when gFTP exits. If you exit gFTP and
|
|
818 then start it again you will have an empty queue.
|
|
819
|
|
820 9.2. Progress
|
|
821
|
|
822 The right hand side of the transfer window shows the status of the
|
|
823 transfer(s) in progress. gFTP shows the % completion of the entire queue, the
|
|
824 size of the file currently being transfered, how many bytes of the current file
|
|
825 have already been transferred, which files are finished transfering, and which
|
|
826 files are waiting to begin transfering. The progress report also shows the
|
|
827 current transfer rate and gives an estimated length of time until the entire
|
|
828 queue is transferred. Your milage may vary.
|
|
829
|
|
830 9.3. Formating the transfer window
|
|
831
|
|
832 You can arrange the format of the transfer window by sliding the Filename and
|
|
833 Progress labels to wherever you want them.
|
|
834
|
|
835 You can change the height of the remote directory window by using a text
|
|
836 editor to change the config file (/home/user/.gftp/gftrc). The parameter
|
|
837 which controls the transfer window height is transfer_height.
|
|
838
|
|
839
|
|
840 10. Log and log window
|
|
841
|
|
842 gFTP keeps a log (/home/user/.gftp/gftp.log) which records what gFTP has
|
|
843 done. The log is erased and begun anew at each startup of gFTP. The log
|
|
844 entries are displayed in the window at the bottom of the gFTP screen. You can
|
|
845 specify a different location for your log file by clicking on FTP->Options and
|
|
846 entering the now location in Log file.
|
|
847
|
|
848 10.1. Log commands
|
|
849
|
|
850 If you right click anywhere on the log window then a pop up menu will appear
|
|
851 with three commands:
|
|
852
|
|
853 Clear - double clicking on Clear erases all of the log entries.
|
|
854
|
|
855 View log - double clicking on View log launches the program you specified in
|
|
856 FTP->Options->View program to display the log.
|
|
857
|
|
858 Save log - double clicking on Save log opens a file tree display window which
|
|
859 you can use to save the gFTP log anywhere that you want to put it.
|
|
860
|
|
861 The Clear, View log, and Save log commands can also be accessed by clicking
|
|
862 on the Logging button at the top of the gFTP screen.
|
|
863
|
|
864 10.2. Formating the log window
|
|
865
|
|
866 You can change the overall size of the log window by using a text editor to
|
|
867 change the config file (/home/user/.gftp/gftrc). The parameters which control
|
|
868 the remote directory window size are log_height= and max_log_window_size=.
|
|
869
|
|
870 You can change the colors of the various message types in the log window by
|
|
871 using a text editor to change the config file (/home/user/.gftp/gftrc). The
|
|
872 parameters which control the log window message colors are
|
|
873 send_color=rrii:ggii:bbii, recv_color=rrii:ggii:bbii,
|
|
874 error_color=rrii:ggii:bbii, and misc_color=rrii:ggii:bbii.
|
|
875
|
|
876 rrii:ggii:bbii is the color code where each letter stands for a hexidecimal
|
|
877 digit from o through f.
|
|
878
|
|
879 rr - amount of red in the color
|
|
880 gg - amount of green in the color
|
|
881 bb - amount of blue in the color
|
|
882 ii - intensity of the color
|
|
883
|
|
884 examples: bright red rrii:ggii:bbii = ffff:0000:0000
|
|
885 dull brown rrii:ggii:bbii = a000:8d80:4600
|
|
886
|
|
887
|
|
888 11. Bookmarks
|
|
889
|
|
890 gFTP has a bookmarks file which looks and acts very similar to the bookmarks
|
|
891 file in a web browser. gFTP comes with several popular download sites listed in
|
|
892 the bookmarks file.
|
|
893
|
|
894 11.1. Using a bookmark entry
|
|
895
|
|
896 To connect to a remote site, click on Bookmarks and a drop down menu appears.
|
|
897 Navigate the tree until you find the site you want to connect to. Click on that
|
|
898 entry and gFTP will connect to that site. If gFTP doesn't have a password for
|
|
899 the site you are trying to connect to, it will prompt you for one. For
|
|
900 security reasons, gFTP will not save this password in your bookmark file when it
|
|
901 prompts you for it.
|
|
902
|
|
903 11.2. Adding a bookmark
|
|
904
|
|
905 There are two ways to add a bookmark entry to the gFTP bookmark file:
|
|
906
|
|
907 When you are connected to a site you can click on Bookmarks->Add bookmark.
|
|
908 gFTP will open a window in which you enter the entire path name for the new
|
|
909 entry. For example: If you find a Czech mirror site for SuSE downloads you
|
|
910 could file the bookmark as SuSE Sites/Czech mirror and gFTP will add Czech
|
|
911 mirror to the existing SuSE Sites folder.
|
|
912
|
|
913 At any time, connected or not, you can add a bookmark entry by clicking on
|
|
914 Bookmarks->Edit bookmarks. Then right click on a blank area of the bookmarks
|
|
915 window. A menu will pop up. Click on New item. Then enter the entire path
|
|
916 name of the new entry in the pop up window. (For example: To create the first
|
|
917 site in a new Mandrake folder enter Mandrake Sites/USA mirror.) Click on
|
|
918 create. At this point you have created a bookmark entry that does not point
|
|
919 anywhere. Now right click on the new entry, click on Properties, and fill out
|
|
920 the information requested in the pop up form. Click on Apply and click on OK.
|
|
921 You are now finished adding the new bookmark entry.
|
|
922
|
|
923 11.3. Editing bookmarks
|
|
924
|
|
925 You can change the details in a bookmark entry by clicking on Bookmarks->Edit
|
|
926 bookmarks, right click on the bookmark entry, and click on Properties. A form
|
|
927 will pop up which you can use to edit the entry. Then click on Apply and OK.
|
|
928
|
|
929 You can delete a bookmark or an entire folder of bookmarks by clicking on
|
|
930 Bookmarks->Edit bookmarks, right click on the bookmark entry, and click on
|
|
931 Delete.
|
|
932
|
|
933 You can rearrange bookmarks with drag and drop. Rearrangement of the
|
|
934 bookmark entries in gFTP works very similar to the way that it works in most web
|
|
935 browsers. You drag the entry to the appropriate spot in the directory tree and
|
|
936 drop it. With a little practice you can get the entries to go where you want
|
|
937 them to go.
|
|
938
|
|
939 11.4. Bookmark passwords
|
|
940
|
|
941 If gFTP doesn't have a password for the bookmarked site you are trying to
|
|
942 connect to, gFPT will prompt you for one. Due to security concerns, gFTP will
|
|
943 not save this password in your bookmark file. If you want to save your
|
|
944 password for a bookmarked site in the bookmark file, you should read the section
|
|
945 on security concerns first. Then if you still want gFTP to remember your
|
|
946 bookmark entry passwords there are two ways to do it.
|
|
947
|
|
948 The easier way is to add the password manually to the bookmark file
|
|
949 (/home/user/.gftp/bookmarks) using a text editor. An example of a bookmark
|
|
950 entry containing a password is: ftp://user:password@ftp.myhostname.com/pub
|
|
951 Or
|
|
952 You can have gFTP add the bookmark password by: click on Edit bookmarks,
|
|
953 right click on the appropriate bookmark entry, click on Properties, and turn
|
|
954 off "Log in as ANONYMOUS". Then gFTP will make the Username and Password
|
|
955 fields available for editing. Enter the Username and Password fields. Click
|
|
956 on Apply and click on OK.
|
|
957
|
|
958 11.5. Bookmark security concerns
|
|
959
|
|
960 When you save a password in the gFTP bookmark file you are creating a
|
|
961 potential security vulnerabilty because gFTP does not encrypt stored passwords.
|
|
962 Any cracker could write a program to extract passwords from the gFTP bookmarks
|
|
963 file. You should weigh the chances of a malicious attack on your machine and
|
|
964 the value of the password protected data versus the convenience of storing the
|
|
965 passwords before deciding whether or not to store passwords in the bookmark
|
|
966 file.
|
|
967
|
|
968
|
|
969 12. FTP protocol
|
|
970
|
|
971 File Transfer Protocol is a hardware and software independent Internet
|
|
972 protocol which is used to transfer information between servers and clients.
|
|
973 Servers are computers which give out information and clients are computers that
|
|
974 receive information. It is possible for a computer to be both an FTP client and
|
|
975 server. gFTP allows your computer to act as a FTP client.
|
|
976
|
|
977 When gFTP contacts a FTP server it establishes two connections, a control
|
|
978 connection and a transfer connection. gFTP first establishes a control
|
|
979 connection by sending an user id and a password to the server. Then gFTP
|
|
980 requests that a particular file(s) be transferred. Once gFTP has started a FTP
|
|
981 transfer gFTP can drop the control connection without interrupting the transfer.
|
|
982
|
|
983 12.1 Invoking FTP
|
|
984
|
|
985 gFTP knows to use FTP by the first three letters of the URL. An URL for a
|
|
986 FTP transfer begins with ftp://.
|
|
987 Or
|
|
988 Click on the button immediately to the left of the red light and click on FTP
|
|
989
|
|
990
|
|
991 13. HTTP protocol
|
|
992
|
|
993 HyperText Transfer Protocol is a hardware and software independent Internet
|
|
994 protocol which is used to transfer information between servers and clients. It
|
|
995 is probably the most used protocol on the Internet. gFTP can act as a HTTP
|
|
996 client.
|
|
997
|
|
998 From the client standpoint the HTTP protocol is far simpler than the FTP
|
|
999 protocol. Among other things, HTTP has no user ids and passwords. This
|
|
1000 simplicity makes file transfers using HTTP somewhat more simple minded.
|
|
1001
|
|
1002 13.1. Invoking HTTP
|
|
1003
|
|
1004 gFTP knows to use HTTP by the first four letters of the URL. An URL for a
|
|
1005 HTTP transfer begins with HTTP://.
|
|
1006 Or
|
|
1007 Click on the button immediately to the left of the red light and click on
|
|
1008 HTTP.
|
|
1009
|
|
1010
|
|
1011 14. SSH protocol
|
|
1012
|
|
1013 SSH (Secure SHell) is a protocol which provides a high level of security
|
|
1014 for transfering files from one computer to another across the Internet. gFTP
|
|
1015 implements the SSH protocol by calling upon an SSH program to wrap a layer of
|
|
1016 security around what would otherwise be an ordinary FTP tansfer. In effect
|
|
1017 FTP "tunnels" through a secure SSH connection.
|
|
1018
|
|
1019 14.1. Configuring SSH
|
|
1020
|
|
1021 In order to configure your SSH transfers click on FTP->Options->SSH and fill
|
|
1022 out the form. The required entries are:
|
|
1023
|
|
1024 SSH Prog Name - This is the name of the program which provides the SSH
|
|
1025 wrapper.
|
|
1026
|
|
1027 SSH Extra Params - These are the parameters that the SSH wrapper program
|
|
1028 needs to build an encryption key.
|
|
1029
|
|
1030 14.2. Invoking SSH
|
|
1031
|
|
1032 gFTP knows to use SSH by the first three or four letters of the URL. An URL
|
|
1033 for a SSH transfer begins with ssh:// or ssh2://.
|
|
1034 Or
|
|
1035 Click on the button immediately to the left of the red light and click on
|
|
1036 either SSH or SSH2
|
|
1037
|
|
1038 14.3. SSH and SSH2
|
|
1039
|
|
1040 SSH recently went through a major revision to plug known security holes. The
|
|
1041 latest version of SSH is called SSH2. SSH and SSH2 are not compatible with each
|
|
1042 other. gFTP supports both SSH and SSH2.
|
|
1043
|
|
1044
|
|
1045 15. Miscellaneous commands
|
|
1046
|
|
1047 15.1. Window
|
|
1048
|
|
1049 You can reverse the roles of the local window and the remote window. Click
|
|
1050 on FTP. The Window 1 and Window 2 buttons can be used to switch the roles of
|
|
1051 the local and remote windows. Window 2 is the default and this user's guide
|
|
1052 describes everything as set up by Window 2. Clicking on Window 1 switches the
|
|
1053 roles of the two windows to the mirror image of that described in this document.
|
|
1054
|
|
1055 15.2. SITE commands
|
|
1056
|
|
1057 One of the features of the File Transfer Protocol is the ability to create
|
|
1058 SITE commands. A FTP server administrator can create customized commands for a
|
|
1059 FTP client program, such as gFTP, to use. These customized commands are called
|
|
1060 SITE commands.
|
|
1061
|
|
1062 If you want to use a SITE command while you are connected to a FTP server
|
|
1063 then click on either Remote or Local, whichever is connected to the remote site
|
|
1064 in question. Then click on Send SITE Command and a pop up window will open.
|
|
1065 You can enter the SITE command in the window. Then click on OK and gFTP will
|
|
1066 send the SITE command to the FTP server.
|
|
1067
|
|
1068 15.3. Bidirectional transfers
|
|
1069
|
|
1070 It is possible that you may want to open a connection to a remote site and
|
|
1071 transfer files in both directions. Click on Transfers and you will find some
|
|
1072 commands to help you change the direction of the transfers without having to
|
|
1073 drop the connection and restart it in the other direction. These commands are:
|
|
1074
|
|
1075 Put Files - send the files on the transfer queue to the remote site
|
|
1076
|
|
1077 Retrieve Files - copy the files on the transfer queue from the remote site
|
|
1078 to the local site
|
|
1079
|
|
1080 15.4. Clear cache
|
|
1081
|
|
1082 gFTP keeps a cache of data from remote sites. It is possible that while you
|
|
1083 are working with a remote site other people are making changes to that site. To
|
|
1084 get rid of stale copies of the remote directory tree in the cache click on
|
|
1085 Tools->Clear Cache.
|
|
1086
|
|
1087 15.5. Compare Windows
|
|
1088
|
|
1089 An easy way to check which files have been transferred and which files have
|
|
1090 not is to click on Tools->Compare Windows. gFTP will highlight any file names
|
|
1091 which appear in either the local directory or the remote directory but not both.
|
|
1092
|
|
1093 15.6. Disconnect
|
|
1094
|
|
1095 You can disconnect from a remote site at any time. Disconnecting does not
|
|
1096 stop any transfers already in prograss. You can disconnect by:
|
|
1097
|
|
1098 clicking on the red button when it is lit up
|
|
1099 Or
|
|
1100 clicking on Remote->Disconnect
|
|
1101 Or
|
|
1102 clicking on Local->Disconnect
|
|
1103
|
|
1104
|
|
1105 16. Using gftp-text (the command line version of gftp)
|
|
1106
|
|
1107 The gFTP package includes a completely functional command line version of
|
|
1108 gFTP. You can launch the command line version by typing in the command,
|
|
1109 gftp-text, at your console prompt. The command gftp is actually a script which
|
|
1110 decides whether, under the circumstances, to launch gftp-text or gftp-gtk. If
|
|
1111 gftp does not start the version that you want you can finesse that problem by
|
|
1112 using gftp-text or gftp-gtk instead of gftp.
|
|
1113
|
|
1114 16.1. Downloading entire directories and subdirectories
|
|
1115
|
|
1116 If you want to download entire directories including subdirectories you
|
|
1117 should look at using gftp-text. Some downloads are simpler to invoke using
|
|
1118 gftp-text. For example:
|
|
1119
|
|
1120 gftp-text -d ftp://ftp.somesite.com/someplace
|
|
1121
|
|
1122 If someplace is a directory, it'll automatically download all its
|
|
1123 subdirectories as well. If you want to transfer a file through SSH instead of
|
|
1124 FTP then change the ftp:// to ssh://
|
|
1125
|
|
1126 16.2. Documentation for gftp-text
|
|
1127
|
|
1128 gftp-text will give you a prompt: ftp>
|
|
1129 You can learn more about gftp-text by typing in help at the ftp> prompt. You
|
|
1130 can also get instructions in how to use gftp-text by typing in "man gftp" or
|
|
1131 "info gftp" at the console prompt.
|
|
1132
|
|
1133
|
|
1134 17. Using gftp-gtk
|
|
1135
|
|
1136 gftp-gtk is the name of the GUI version of gFTP. The gftp command is
|
|
1137 actually a script which decides whether, under the circumstances, to launch
|
|
1138 gftp-text or gftp-gtk.
|
|
1139
|
|
1140
|
|
1141 18. Configuring gFTP
|
|
1142
|
|
1143 All of the gFTP configuration options are specified in the file
|
|
1144 /home/user/.gftp/gftprc.
|
|
1145
|
|
1146 18.1. Proxy host setup
|
|
1147
|
|
1148 If your computer is on a local network then you are probably connected to the
|
|
1149 internet through a proxy host. A proxy host can connect several users to the
|
|
1150 internet. A proxy host often also acts as a firewall, possibly filtering
|
|
1151 messages in both directions. If you are connected to the internet through a
|
|
1152 proxy host then gFTP needs passwords and other configuration information to
|
|
1153 make a connection through the proxy host to the internet.
|
|
1154
|
|
1155 To set up your proxy host and/or firewall configuration, click on
|
|
1156 FTP->Options. You can click on HTTP Proxy and FTP Proxy to set up your
|
|
1157 proxy hosts, user names, and passwords. In the FTP Proxy form, you can set up
|
|
1158 how you want gFTP to log into the proxy host. I have many of the common types
|
|
1159 of proxy hosts that you will encounter already descried in gFTP. If you are
|
|
1160 using a very complex proxy host configuration then you may have to use a text
|
|
1161 editor to edit the config file (/home/user/.gftp/gftprc). The fields in the
|
|
1162 config file that pertain to proxy host and/or firewall configuration are:
|
|
1163
|
|
1164 # Firewall hostname
|
|
1165 firewall_host=
|
|
1166
|
|
1167 # Port to connect to on the firewall
|
|
1168 firewall_port=21
|
|
1169
|
|
1170 # Your firewall username
|
|
1171 firewall_username=
|
|
1172
|
|
1173 # Your firewall password
|
|
1174 firewall_password=
|
|
1175
|
|
1176 # Your firewall account (optional)
|
|
1177 firewall_account=
|
|
1178
|
|
1179 # This specifies how your proxy server expects us to log in
|
|
1180 proxy_config=
|
|
1181
|
|
1182 # Firewall hostname
|
|
1183 http_proxy_host=
|
|
1184
|
|
1185 # Port to connect to on the firewall
|
|
1186 http_proxy_port=80
|
|
1187
|
|
1188 # Your firewall username
|
|
1189 http_proxy_username=
|
|
1190
|
|
1191 # Your firewall password
|
|
1192 http_proxy_password=
|
|
1193
|
|
1194 18.2. Proxy security concerns
|
|
1195
|
|
1196 When you have gFTP save a proxy password you are creating a potential
|
|
1197 security vulnerabilty. gFTP does not encrypt stored passwords. They are kept
|
|
1198 in plain text in the file, /home/user/.gftp/gftprc. Any cracker could write
|
|
1199 a program to extract passwords from the gftprc file. You should weigh the
|
|
1200 chances of a malicious attack on your machine and the value of the proxy
|
|
1201 passwords versus the convenience of storing the passwords before deciding
|
|
1202 whether or not have gFTP store proxy passwords. Also if you are on a local
|
|
1203 network then you are probably a member of a beaurocracy, lucky you. In that
|
|
1204 case you should give a passing thought to your organization's security rules.
|
|
1205
|
|
1206 18.3. Configuring file extensions
|
|
1207
|
|
1208 gFTP has the ability to use mime types. Some mime types come pre-configured
|
|
1209 with gFTP and you have complete control to configure the gFTP mime types any way
|
|
1210 that you want.
|
|
1211
|
|
1212 Towards the bottom of the config file (/home/user/.gftp/gftprc), there is a
|
|
1213 section that has some ext= lines. Here you can control via a file extension,
|
|
1214 the icon in the listbox for it, the default transfer method (ascii or binary),
|
|
1215 and a default view/edit program. For example, let's take the line:
|
|
1216
|
|
1217 ext=.xcf:gimp.xpm:B:gimp
|
|
1218
|
|
1219 The first token, .xcf, is the file extension. The next token, gimp.xpm, is
|
|
1220 the default icon to use in the listboxes. You don't have to specify one if
|
|
1221 you don't want to. By default, gFTP will search ~/.gftp, $(PREFIX)/share/gftp
|
|
1222 (where prefix is your installation prefix), and then /usr/share/icons in that
|
|
1223 order. The files must be valid xpm files. The next token, B, specifies
|
|
1224 whether or not to transfer a file as Binary or Ascii. If you want to have
|
|
1225 something transfer as Ascii, put an A there. If you omit this field, then gFTP
|
|
1226 will transfer the file according to whether ascii or binary is selected in
|
|
1227 the FTP menu. The final token, gimp, specifies the name of the program to run
|
|
1228 to view or edit a file with that extension. You can omit this as well if you
|
|
1229 like.
|
|
1230
|
|
1231 18.4. Desktop icon
|
|
1232
|
|
1233 You can set up gFTP to be started from your Gnome or KDE desktop. The
|
|
1234 program name can be either gftp or gftp-gtk. Some suitable gFTP icons are
|
|
1235 available in /usr/share/gftp: gftp.xpm down.xpm world.xpm
|
|
1236
|
|
1237
|
|
1238 19. Staying in touch
|
|
1239
|
|
1240 19.1. gFTP bugs
|
|
1241
|
|
1242 gFTP is released under the GNU General Public License. As such there is
|
|
1243 ABSOLUTELY NO WARRENTY with gFTP. That said, if you run into ANY bugs in gFTP
|
|
1244 please let me know. I take pride in making gFTP as bug free as possible. Since
|
|
1245 gFTP is used on a wide variety of hardware and software configurations bugs will
|
|
1246 sometimes crop up that I never could have anticipated on the configuration I use
|
|
1247 to develop gFTP. Please include as much information as possible in your bug
|
|
1248 description. It is better to report too much detail than to report too little
|
|
1249 detail in your bug report. Basically, I need enough information to be able to
|
|
1250 recreate the bug on my machine. The information that might be useful to me
|
|
1251 could include:
|
|
1252
|
|
1253 The gFTP version number you are using and what installation method (tarball
|
|
1254 or rpm). For example:
|
|
1255
|
|
1256 I am using gFTP-2.0.13.tar.gz.
|
|
1257
|
|
1258 Please tell me your hardware and software configuration. For example:
|
|
1259
|
|
1260 Configuration:
|
|
1261 AMD 1.2G CPU with 256M ram
|
|
1262 Mandrake 8.1 distribution
|
|
1263 KDE 2.2 desktop
|
|
1264 KWvDial 0.10 -> dial up modem
|
|
1265 kernel 2.2.10
|
|
1266
|
|
1267 Please tell me enough about the problem so that I can try to recreate it.
|
|
1268 For example:
|
|
1269
|
|
1270 I was connected to jungle.metalab.unc.edu, which is a Mandrake mirror, to do
|
|
1271 some downloads. I connected OK using the Remote->Open URL window. I went to
|
|
1272 a directory called /pub/Linux/distributions/mandrake/Mandrake/8.1/SRPMS/ and
|
|
1273 double clicked on the file alien-7.27-1mdk.src.rpm. gFTP entered this file
|
|
1274 name in the queue twice and downloaded it twice. I think gFTP should have
|
|
1275 only downloaded it once. This happens intermittently. Sometimes gFTP downloads
|
|
1276 files once and sometimes it downloads files twice. gFTP always downloads
|
|
1277 alien-7.27-1mdk.src.rpm twice.
|
|
1278
|
|
1279 Please attach the gFTP log file (/home/user/.gftp/gftp.log) to your report.
|
|
1280
|
|
1281 If you are having trouble with gFTP bookmarks please attach the gFTP bookmark
|
|
1282 file (/home/user/.gftp/bookmarks) to your report.
|
|
1283
|
|
1284 If you are having trouble with the gFTP configuration please attach the gFTP
|
|
1285 configuration file (/home/user/.gftp/gftprc) to your report.
|
|
1286
|
|
1287 If you keep passwords in your bookmark file or your configuration file you might
|
|
1288 want to x out the passwords before you send the file to me.
|
|
1289
|
|
1290 Please send your bug report to:
|
|
1291
|
|
1292 Brian Masney masneyb@gftp.org
|
|
1293 Elkview, WV USA
|
|
1294
|
|
1295 If you find a bug in an older version of gFTP, that bug might already be fixed
|
|
1296 in the latest version of gFTP. You can find the latest version at the gFTP
|
|
1297 download site by clicking on Bookmarks->General Sites->gFTP.
|
|
1298
|
|
1299 19.2. gFTP mailing list
|
|
1300
|
|
1301 There is a mailing list available where you can receive announcements about
|
|
1302 new versions of gFTP. It is an extremely quiet mailing list and I promise not
|
|
1303 to spam you. To subscribe to the gFTP mailing list, send a message to
|
|
1304 majordomo@seul.org with the words subscribe gftp-announce in the body.
|
|
1305
|
|
1306 19.3. gFTP home page and FAQ
|
|
1307
|
|
1308 You can find the latest information about gFTP at the gFTP home page or on
|
|
1309 the gFTP Frequently Asked Questions.
|
|
1310
|
|
1311 gFTP home page: http://www.gftp.org/
|
|
1312
|
|
1313 gFTP FAQ: http://www.gftp.org/faq.html
|
|
1314
|
|
1315
|
|
1316 20. Legal section
|
|
1317
|
|
1318 Click on Help->About->License Agreement to find a copy of the GNU General
|
|
1319 Public License
|
|
1320
|
|
1321 20.1. Copying gFTP
|
|
1322
|
|
1323 This program is free software; you can redistribute it and/or modify
|
|
1324 it under the terms of the GNU General Public License as published by
|
|
1325 the Free Software Foundation; either version 2 of the License, or
|
|
1326 (at your option) any later version.
|
|
1327
|
|
1328 You should have received a copy of the GNU General Public License
|
|
1329 along with this program; if not, write to:
|
|
1330
|
|
1331 Free Software Foundation, Inc.
|
|
1332 59 Temple Place - Suite 330
|
|
1333 Boston, MA 02111
|
|
1334 USA
|
|
1335
|
|
1336 20.2. Warrenty
|
|
1337
|
|
1338 This program is distributed in the hope that it will be useful,
|
|
1339 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1340 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1341 GNU General Public License for more details.
|
|
1342
|
|
1343 20.3. Source code
|
|
1344
|
|
1345 gFTP is open source software under the terms of the GNU General Public
|
|
1346 License. You can find the gFTP source code by clicking on
|
|
1347 Bookmarks->General Sites->gFTP. The tarballs on the gFTP web site contain both
|
|
1348 source and binary. The rpm packages are split into binary rpms and source
|
|
1349 rpms. The Debian packages contain both binary and source. You may use the
|
|
1350 gFTP source code in any way that you wish as long as you conform to the terms
|
|
1351 of the GNU General Public License. If you fix any bugs or add any useful
|
|
1352 features to gFTP you might consider sending your changes to me to be
|
|
1353 incorporated into a future release of gFTP. I welcome any help you might give
|
|
1354 me in improving gFTP.
|