Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the...

13
Configuring a LAN FTP Client Chapter 17 & 19

Transcript of Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the...

Page 2: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

Setting up the physical layer

• Chapter 17 covers the basics of hubs, switches, routers and WAPs.

Page 3: 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

Page 5: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

FTP Introduction

• File Transfer Protocol• ftp – not secure• sftp – component of OpenSSH• vsftpd – server side runs without the use of the root

security context

Page 6: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

FTP Client

• Connecting to the server– ftp hostname

• View files with the “ls” command as you would normally do

• Navigate using “cd”

Page 7: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

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

Page 8: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

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

Page 9: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

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)

Page 10: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

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

Page 11: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

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”

Page 12: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

ftp put permissions

• Before any user can upload they will require write permissions on the directory– Chmod will work here for that purpose

Page 13: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.

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