Saturday, March 27, 2010

Misc 11

(This uses the topology found in Misc 3)
Alright right now I'm going to show you how to use the FTP client in Linux as one of the means of getting files into Debian. The next post I'll probably go into setting up samba to make Debian accessible from Windows.

First of all, follow the guide here to get a basic FTP server set up. I have one set up right now with the following settings:

Control Port: 14147
User: F1s5Us3r
Password: P@55w0rd
Access: C:\, Full-Control

Now, to initiate a connection to your FTP server, simply type in:
ftp 14147

Alternatively, you can type in:
open 14147

Once connected, you would be shown the MOTD (depending on what server you're using) and you'll be asked for credentials. Type it in as per normal.

At this point you should see a success connection message. The first thing you should do in an FTP session is to list the folder contents. FTP commands are quite similar to Linux ones. For example, to do a listing, simply type:

Similarly, you can change directories through:
cd directory/

To download files, simply use:
recv filename

To upload files, you can use:
send filename

recv can be substituted with get, and send can be substituted with put.

If you want to download more than one file at a time, use:
mget *.txt

If you want to upload more than one file at a time, use:
mput *.txt

Note that when sending non-cleartext files, it is best to switch to binary mode by typing:

If you receive a non-cleartext file in ASCII mode, they will become truncated and unreadable. ASCII mode is the default. To switch back to ASCII mode, use:

No comments :

Post a Comment