https://webhostinggeeks.com/howto/how-to-install-linux-ftp-server/
dbsa@dbsa-X406UA:~$ ssh root@172.16.10.174
root@172.16.10.174's password:Last login: Thu Sep 30 13:06:06 2021 from 172.17.10.61
[root@dev-ebs ~]# telnet google.com 80
bash: telnet: command not found...
[root@dev-ebs ~]# yum install vsftpd -y
Loaded plugins: langpacks, ulninfo
ol7_UEKR5 | 3.0 kB 00:00:00
ol7_addons | 3.0 kB 00:00:00
ol7_latest | 3.6 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:3.0.2-29.el7_9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
vsftpd x86_64 3.0.2-29.el7_9 ol7_latest 172 k
Transaction Summary
=============================================================================================================================
Install 1 Package
Total download size: 172 k
Installed size: 353 k
Downloading packages:
vsftpd-3.0.2-29.el7_9.x86_64.rpm | 172 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : vsftpd-3.0.2-29.el7_9.x86_64 1/1
Verifying : vsftpd-3.0.2-29.el7_9.x86_64 1/1
Installed:
vsftpd.x86_64 0:3.0.2-29.el7_9
Complete!
[root@dev-ebs ~]# rpm -qa xinetd
[root@dev-ebs ~]# yum install xinetd -y
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package xinetd.x86_64 2:2.3.15-14.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
xinetd x86_64 2:2.3.15-14.el7 ol7_latest 128 k
Transaction Summary
=============================================================================================================================
Install 1 Package
Total download size: 128 k
Installed size: 261 k
Downloading packages:
xinetd-2.3.15-14.el7.x86_64.rpm | 128 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:xinetd-2.3.15-14.el7.x86_64 1/1
Verifying : 2:xinetd-2.3.15-14.el7.x86_64 1/1
Installed:
xinetd.x86_64 2:2.3.15-14.el7
Complete!
[root@dev-ebs ~]# rpm -qa xinetd
xinetd-2.3.15-14.el7.x86_64
[root@dev-ebs ~]# chkconfig vsftpd on
Note: Forwarding request to 'systemctl enable vsftpd.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@dev-ebs ~]# chkconfig xinetd on
Note: Forwarding request to 'systemctl enable xinetd.service'.
[root@dev-ebs ~]# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf-bak
[root@dev-ebs ~]# vi /etc/vsftpd/vsftpd.conf
[root@dev-ebs ~]# cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
[root@dev-ebs ~]# vi /etc/vsftpd/ftpusers
[root@dev-ebs ~]# service vsftpd status
Redirecting to /bin/systemctl status vsftpd.service
● vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled; vendor preset: disabled)
Active: inactive (dead)
[root@dev-ebs ~]# service vsftpd start
Redirecting to /bin/systemctl start vsftpd.service
[root@dev-ebs ~]# service vsftpd status
Redirecting to /bin/systemctl status vsftpd.service
● vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled; vendor preset: disabled)
Active: active (running) since Kam 2021-09-30 14:14:19 WIB; 1s ago
Process: 3094 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
Main PID: 3095 (vsftpd)
Tasks: 1
CGroup: /system.slice/vsftpd.service
└─3095 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
Sep 30 14:14:19 dev-ebs.yogya.com systemd[1]: Starting Vsftpd ftp daemon...
Sep 30 14:14:19 dev-ebs.yogya.com systemd[1]: Started Vsftpd ftp daemon.
[root@dev-ebs ~]#
Tidak ada komentar:
Posting Komentar