Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the...
-
Upload
mabel-wilson -
Category
Documents
-
view
212 -
download
0
Transcript of Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the...
![Page 1: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/1.jpg)
Configuring a LAN FTP Client
Chapter 17 & 19
![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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/2.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/3.jpg)
Configuring the systems
• Kudzu: detects NIC and configures new hardware• System-config-network
![Page 4: Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/4.jpg)
FTP: Transferring Files Across a Network
Chapter 19
![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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/5.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/6.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/7.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/8.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/9.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/10.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/11.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/12.jpg)
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.](https://reader035.fdocuments.in/reader035/viewer/2022072006/56649f4d5503460f94c6db5d/html5/thumbnails/13.jpg)
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