Post on 13-Dec-2015
Configuring a LAN FTP Client
Chapter 17 & 19
Setting up the physical layer
• Chapter 17 covers the basics of hubs, switches, routers and WAPs.
Configuring the systems
• Kudzu: detects NIC and configures new hardware• System-config-network
FTP: Transferring Files Across a Network
Chapter 19
FTP Introduction
• File Transfer Protocol• ftp – not secure• sftp – component of OpenSSH• vsftpd – server side runs without the use of the root
security context
FTP Client
• Connecting to the server– ftp hostname
• View files with the “ls” command as you would normally do
• Navigate using “cd”
FTP: moving files
• “put” command – Command for uploading from the client to the server– put timesheet.xls
• “get” command– Downloads from the server– get memo.txt
FTP commands• Working with multiple files
– mget command can be used to retrieve multiple files– mget * - will retrieve all files in a directory– mget *.doc will get all MSWord docs
• You will be prompted to confirm mget commands. You can shut this off with the “prompt” command
Other useful FTP commands
• lcd [local_directory]- allows you to control the directory you are working from/to
• delete file_name – allows you to delete the file on the server (mdelete = multiple)
• pwd – print working directory of server• !pwd – print working directory of local host• bye – leave the server (also quit)
FTP Server Side
• Prereqs:– Install ftp server package (vsftpd)– Configure ftp server to start when system enters
multiuser mode• # /sbin/chkconfig vsftpd on
– Start vsftp• # /sbin/service vsftpd start
– To test status - # /sbin/service vsftpd status
Anonymous FTP
• By default users log onto the ftp server with anonymous access.
• When connected the default working directory on the server will be “/var/ftp” – For the ftp session this will be considered the user’s
home directory on the server.– The user will only see that they are in “/”
• This is referred to as “chroot jail”
ftp put permissions
• Before any user can upload they will require write permissions on the directory– Chmod will work here for that purpose
Exercise
1. Take a moment to google some poplar ftp client software
2. What are some popular ftp server programs?
3. Install the vsftpd package on you machine and test