0% found this document useful (0 votes)
354 views

FTP & NFS

This document discusses FTP and NFS. FTP (File Transfer Protocol) allows transferring files between hosts over TCP. It uses separate control and data connections. FTP requires multiple ports - port 21 for commands and port 20 for transferring data. VSFTPD is a secure and efficient FTP server included in Red Hat Linux. NFS (Network File System) allows mounting remote file systems over a network. It provides a centralized storage that can be accessed from multiple systems, similar to a local file system. Configuring NFS involves exporting directories on the server and mounting them on clients.

Uploaded by

srinivas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
354 views

FTP & NFS

This document discusses FTP and NFS. FTP (File Transfer Protocol) allows transferring files between hosts over TCP. It uses separate control and data connections. FTP requires multiple ports - port 21 for commands and port 20 for transferring data. VSFTPD is a secure and efficient FTP server included in Red Hat Linux. NFS (Network File System) allows mounting remote file systems over a network. It provides a centralized storage that can be accessed from multiple systems, similar to a local file system. Configuring NFS involves exporting directories on the server and mounting them on clients.

Uploaded by

srinivas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

FTP & NFS

Presented By:
V. Rahul
Nikhil Arora
Manogna
N. Sowjanya
G. Ravi Teja
What is FTP?
 The File Transfer Protocol (FTP) is a standard network
protocol used to transfer computer files from one host to
another host over a TCP-based network, such as
the Internet.

 FTP is built on a client-server architecture and uses


separate control and data connections between the
client and the server.
 Unlike most protocols used on the Internet, FTP requires
multiple network ports to work properly.

 When an FTP client application initiates a connection to


an FTP server, it opens port 21 on the server — known as
the command port. This port is used to issue all
commands to the server.

 Any data requested from the server is returned to the


client via a data port (port 20)
What is vsftpd ?
 The Very Secure FTP Daemon (vsftpd) is designed from
the ground up to be fast, stable, and, most importantly,
secure.

 vsftpd is the only stand-alone FTP server distributed with


Red Hat Enterprise Linux, due to its ability to handle large
numbers of connections efficiently and securely.
How to configure FTP?
INSTALLATION :
 For Graphical Interface
yum install vsftpd*
 For Command Line Interface
yum install ftp*
To start the vsftpd service in the current session, type the
following at a shell prompt as root:

~]# systemctl start vsftpd.service


To check the status of vsftpd service
~]# systemctl status vsftpd.service
 After installing Vsftpd a directory name ftp is created in /var
directory
 If you want to upload any file into server :
 First we should place the files in the directory of /var/ftp/pub

HOW TO CONNECT TO THE FTP SERVER?


 In Graphical mode using Firefox Browser
ftp://xxx.xxx.xxx.xxx
 In Command Line Mode
ftp xxx.xxx.xxx.xxx
Give Login details for ftp user
Network File Sharing(NFS)..
What is NFS ?
The Network File System (NFS) is a way of
mounting Linux discs/directories over a
network.

An NFS server can export one or more directories


that can then be mounted on a remote Linux
machine.
Why we are using nfs ?
The main use of NFS in the home context, is to share out data
on a central server (-for example, your music collection) to all
the PCs in the house. This way, you have a single copy of data
(-hopefully, well backed up) accessible from a central
location.
use NFS to connect the Linux members.

Server O/S Client O/S Usage

Linux Linux NFS


Benefits of nfs
A NFS file system mounted is very similar to a local file
system on the machine.
An NFS server can be made of a completely different
architecture and operating system than the client.
NFS does not disclose the location of a file on the
network
It also never discloses the underlying file system on the
remote machine.
Configuration

Server :
Open exports file using # vim /etc/exports
Edit that file as bellow
/nfs *(rw,sync)
/nfs 192.168.1.20(rw,sync)
Restart nfs server using # systemctl restart nfs
To check whether directories added use # exportfs
Client:

Install NFS packages and start it.


Then use command # showmount –e ip address
to check directories will be shared by server.
To mount the directories shared by server we use
# mount –t nfs IP:server_directory client_directory .
Mount -t nfs192.168.1.21:/nfs /nfs
Any questions?
Thank you

You might also like