FTP Server in Linux
ftp server is used to transfer files between server and
clients. All major operating system supports ftp. ftp is the most used protocol
over internet to transfer files. Like most Internet operations, FTP works on a
client/ server model. FTP client programs can enable users to transfer files to
and from a remote system running an FTP server program.
Configuring
the ftp Server
The vsftpd RPM package is
required to configure a Red Hat Enterprise Linux system as an ftp server. If it
is not already installed, install it with rpm commands as
described in our pervious article. After it is installed, start the service as
root with the commandservice vsftpd start . The system is now an ftp
server and can accept connections. To configure the server to
automatically start the service at boot time, execute the command chkconfig
vsftpd on as root. To stop the server, execute the command service
vsftpd stop. To verify that the server is running, use the command service
vsftpd status.
Configure
vsftpd server
In this example we will configure a vsftpd server
and will transfer files from client side.
For this example we are using three systems
one linux server one linux clients and one windows xp clients. To complete
these per quest of ftp server Follow this link
·
A
linux server with ip address 192.168.0.254 and hostname Server
·
A
linux client with ip address 192.168.0.1 and hostname Client1
·
A
window client with ip address 192.168.0.2 and hostname Client2
·
Updated
/etc/hosts file on both linux system
·
Running
portmap and xinetd services
·
Firewall
should be off on server
Most
commonly commands used on ftp prompt are
put To upload files on server
get To download files from server
mput To upload all files
mget To download all files
? To see all available command on ftp prompts
cd To change remote directory
lcd To change local directory.
No comments:
Post a Comment