Login
     
 
     
Articles:
List of all articles
List by categories
Search in articles
>> admin_tools
>> c
>> cli
>> database
>> debian
>> games
>> gnu
>> hardware
>> internet
>> linux
>> microsoft
>> network
>> os
>> php
>> programming
>> python
>> security
>> server
>> shell
>> text_editor
>> tools
>> web_dev
Links:
List all links
List by categories
Search in links
Online Tools:
>> gnuvd
Other Things:
Login
Admin
Pages
Blog
News
Guestbook
Contact
Sponsors:
None Yet!
Sponsor this project
That's not a published item! You are not allowed to see the content of this item!
[ Source ]

ftp

Created: 2007-11-28 23:19:00
Modified: 2009-04-15 11:54:00
Categories: network
Keywords: ftp file transfer protocol.
Description:

This article talk about the ftp (file transfer protocol). In this article we show how you can download a file with the ftp command line utility.

FTP on the cli

ftp ftp.oreilly.com

This output:

Connected to ftp.oreilly.com.
220 ProFTPD 1.3.1rc2 Server (ftp.oreilly.com) [208.201.239.51]
Name (ftp.oreilly.com:dvanmosselbeen):

Enter anonymous as username.

This output:

331 Anonymous login ok, send your complete email address as your password
Password:

Enter your email address (or even a fake for full anonymous).

This output:

230-Welcome to the O'Reilly & Associates, Inc. FTP Archive.
 Local date and time: Sun Apr 27 20:44:38 2008

 --> Hello 84.198.68.117 <--
 --> There are 4 users out of 100 allowed in your usage class. <--

 Check out our public web server at http://www.oreilly.com


 --> Please Note!! <--
 If you're using an FTP client in "active" mode and you're behind
 a firewall, you will be unable to list directories. To do so requires
 that the server initiate a data connection back to your client
 on a port that could be blocked by your firewall configuration.
 Attempts to list directories or retrieve files under these conditions
 will result in a message similar to the following:

 Can't build data connection: Connection refused.

 Depending on your FTP client software, it may be possible to toggle
 from active to passive mode. If it isn't possible, we suggest using
 a recent version of Netscape's browser, which runs in passive mode
 by default. Use this URL:

 ftp://ftp.oreilly.com

 thank you.

 ftpmaster@oreilly.com
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

Enter cd /published/oreilly/nutshell/practical_c3 at the ftp prompt to change the current working directory to the one specified.

You should get:

250 CWD command successful

Type binary on the ftp prompt. This output:

200 Type set to I

List the content of the directory with the ls command. This output:

200 PORT command successful
150 Opening ASCII mode data connection for file list
-rwxr-xr-x   1 ftp      ftp        816128 Mar 31 17:59 examples.tar
-rwxr-xr-x   1 ftp      ftp        225393 Mar 31 17:59 examples.zip
226 Transfer complete

Type now get examples.zip to download this file. This output:

local: examples.zip remote: examples.zip
200 PORT command successful
150 Opening BINARY mode data connection for examples.zip (225393 bytes)
226 Transfer complete
225393 bytes received in 1.11 secs (197.9 kB/s)

The file is download in the current working directory where you started the ftp program.

Type quit to close the connection and quit the FTP program. This output:

221 Goodbye.

ftp servers

The recommended is vsftpd.

  • vsftpd (very small/secure ftpd)
  • proftpd

Resources

Comments leaved by users (total: 0)

No comments yet!

Add a comment

obfuscated letters
 
  • Do you know that you may use some special markup syntax to create header, italic, bold, styling and links and much more. See the sandbox for the markup language.
  • Do you need some other help?

[ Toggle on/off history ]

Item History:

242 | 2009-04-15 11:54:59 | view diff
No revision comment

Login:
User Name
Password

Last Articles
python stuff concerning python
2009-07-22 12:00:00
vim
2009-06-06 23:53:00
fluxbox
2009-05-23 12:42:00
setting up a toshiba satellite a110-178
2009-05-21 15:35:00
create a secure virtual private network with openvpn
2009-04-25 13:34:00
>>> Read more...

Last News
Released pyguicms 1.0.0-beta1
2008-06-02 21:20:00
guicms replaced by pyguicms
2008-04-27 17:39:00
pyguicms up and running and online
2007-11-29 22:31:00
>>> Read more...

Last Links
mxtoolbox
2009-09-25 17:54:00
minibikeshop
2009-09-05 12:43:00
magicbike
2009-09-05 12:40:00
systranet
2009-07-22 11:42:00
transfer big files
2009-07-22 11:42:00
>>> Read more...

Last Pages
sandbox
2008-09-07 22:30:00
about
2008-09-07 22:29:00
help
2008-09-07 22:25:00
welcome page
2008-09-07 18:27:00
python stuff to check
2007-12-03 00:16:00
>>> Read more...