FTP Configuration in RHEL7
In
this scenario, local Repository has been built with Operating System Media so
that packages get installed from media,
In RHEL, as same as in previous versions, ftp
services served by the package/daemon called vsftpd i.e. Very Secure FTP
Daemon,
[root@linux
~]#
[root@linux
~]#
[root@linux
~]# yum install vsftpd
Command to install VSFTPD package is as follows,
[root@linux
~]# yum install vsftpd
Loaded
plugins: product-id, subscription-manager
This
system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
local
| 4.1 kB 00:00:00
Resolving
Dependencies
-->
Running transaction check
--->
Package vsftpd.x86_64 0:3.0.2-9.el7 will be installed
-->
Finished Dependency Resolution
Dependencies
Resolved
====================================================================
Package Arch Version
Repository
Size
====================================================================
Installing:
vsftpd x86_64 3.0.2-9.el7 local 166 k
Transaction
Summary
====================================================================
Install 1 Package
Total
download size: 166 k
Installed
size: 343 k
Is this ok
[y/d/N]: y
Downloading
packages:
Running
transaction check
Running
transaction test
Transaction
test succeeded
Running
transaction
Installing : vsftpd-3.0.2-9.el7.x86_64
1/1
Verifying
: vsftpd-3.0.2-9.el7.x86_64
1/1
Installed:
vsftpd.x86_64 0:3.0.2-9.el7
Complete!
[root@linux
~]#
Once the installation of package completes, enable
the vsftpd service at startup. This can be done using the following command,
[root@linux
~]# systemctl enable vsftpd.service
ln -s
'/usr/lib/systemd/system/vsftpd.service'
'/etc/systemd/system/multi-user.target.wants/vsftpd.service'
[root@linux
~]#
Then start the service using systemctl as below,
[root@linux
~]# systemctl start vsftpd.service
[root@linux
~]#
Now FTP Service is enabled and available for
localhost. To make available through LAN or outside network, this has to be
enabled through firewall,
To do the same, following is the command to allow
ftp through firewall,
[root@linux
~]#
[root@linux
~]# firewall-cmd --permanent --add-service=ftp
Success
To save the rule, execute the following command,
[root@linux
~]# firewall-cmd --reload
success
[root@linux
~]#
Now we are ready with FTP Server configuration.
From any other machine, just go to browser and type ftp://192.168.x.x/
and it will open list of files which are available in FTP default directory
No comments:
Post a Comment