FTP Server on RedHat
It is a file transfer protocol, which is use to transfer the file and receive the file from a Central server up to client, it work at application layer of OSI model and port no. is 20 & 21. port no. 20 is used for connectivity and port no. 21 is used for send & receive data.
FTP Important note:-
Server configuration:-
Step-1 install vsftpd package
#yum install vsftpd*
(package is installing from yum server)
Step-2 make changes in vsftpd.conf file
#vim /etc/vsftpd/vsftpd.conf
Step-3 restart ftp service
#service vsftpd restart (Service on temporary )
#chkconfig vsftpd on (Service on permanent)
Step-4 Make directory as per requirement
#cd /var/ftp/pub
#mkdir upload download
#cat /download file1
Client Configuration:-
Step-1 Now access ftp server
#ftp 172.24.0.56 (change ip address as ftp server ip)
user: anonymous
Password: (No password require)
>cd pub
>cd download
>mget file1 (mget use for multiple file)
or
>get file1 (get use for one file)
>bye (bye use for exit from ftp)
or
>quit
>good bye (Reply from server side)
It is a file transfer protocol, which is use to transfer the file and receive the file from a Central server up to client, it work at application layer of OSI model and port no. is 20 & 21. port no. 20 is used for connectivity and port no. 21 is used for send & receive data.
FTP Important note:-
- The configuration file for vsftpd is "/etc/vsftpd/vsftpd.conf"
- By default root user can't access ftp server
- By default other user can't access ftp server
- By default anonymous user can assess ftp server & it need no password.
Server configuration:-
Step-1 install vsftpd package
#yum install vsftpd*
(package is installing from yum server)
Step-2 make changes in vsftpd.conf file
#vim /etc/vsftpd/vsftpd.conf
Step-3 restart ftp service
#service vsftpd restart (Service on temporary )
#chkconfig vsftpd on (Service on permanent)
Step-4 Make directory as per requirement
#cd /var/ftp/pub
#mkdir upload download
#cat /download file1
Client Configuration:-
Step-1 Now access ftp server
#ftp 172.24.0.56 (change ip address as ftp server ip)
user: anonymous
Password: (No password require)
>cd pub
>cd download
>mget file1 (mget use for multiple file)
or
>get file1 (get use for one file)
>bye (bye use for exit from ftp)
or
>quit
>good bye (Reply from server side)
No comments:
Post a Comment