How to configure FTP server on Kali Linux

Posted: 16 Feb 2019 in kali Linux
Tags: ,

Learn to configure FTP service inside kali Linux Machine in just few simple steps. Mainly focused on ftp service package inside Kali Linux and configuration file of ftp service inside Kali Linux.Also learn how to manually allow specif user to access your ftp services in kali linux.And also learn how to stop anonymous user from accessing your ftp machine.

Step1:install  vsftpd package which is  required for ftp service


root@kali:~# apt-get install vsftpd
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
vsftpd
0 upgraded, 1 newly installed, 0 to remove and 1455 not upgraded.
Need to get 153 kB of archives.
After this operation, 357 kB of additional disk space will be used.
Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 vsftpd amd64 3.0.3-11 [153 kB]
Fetched 153 kB in 5s (32.2 kB/s)
Preconfiguring packages …
Selecting previously unselected package vsftpd.
(Reading database … 340483 files and directories currently installed.)
Preparing to unpack …/vsftpd_3.0.3-11_amd64.deb …
Unpacking vsftpd (3.0.3-11) …
Setting up vsftpd (3.0.3-11) …
[vsftpd.conf:1] Line references path below legacy directory /var/run/, updating /var/run/vsftpd/empty → /run/vsftpd/empty; please update the tmpfiles.d/ drop-in file accordingly.
update-rc.d: We have no instructions for the vsftpd init script.
update-rc.d: It looks like a network service, we disable it.
Processing triggers for systemd (239-10) …
Processing triggers for man-db (2.8.4-2+b1) …

 

Step2: FTP server Configuration File in Kali Linux


Edit the ftp configuration file

you have to uncomment all these lines i have mentioned below.

If you don’t find these lines inside ftp configuration file then add it manually.

 

root@kali:~# vim /etc/vsftpd.conf




local_enable=YES




anonymous_enable=NO




write_enable=YES




chroot_list_enable=YES

chroot_list_file=/etc/vsftpd.chroot_list

 

Step3: Now create /etc/vsftpd.chroot_list File manually and add all those local users whom you want to allow to connect to your FTP server.


Step4: Restart and check FTP service running or not

 

root@kali:~# vim /etc/vsftpd.conf
root@kali:~# service vsftpd restart
root@kali:~# netstat -nat |grep 21
tcp6 0 0 :::21 :::* LISTEN
root@kali:~#


If you want ftp command line tool in Kali Linux install below pacakge:

 

root@kali:~# ftp 192.168.225.44 
bash: ftp: command not found
 root@kali:~# apt-get install ftp
 Reading package lists... Done
 Building dependency tree Reading state information... Done 
The following NEW packages will be installed: 
ftp 0 upgraded, 1 newly installed, 0 to remove and 1455 not upgraded.
 Need to get 58.7 kB of archives. After this operation, 135 kB of additional disk space will be used.
 Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 ftp amd64 0.17-34 [58.7 kB] 
Fetched 58.7 kB in 3s (21.2 kB/s) Selecting previously 
unselected package ftp. (Reading database ... 340541 files and directories currently installed.) 
Preparing to unpack .../archives/ftp_0.17-34_amd64.deb ... Unpacking ftp (0.17-34) ... 
Setting up ftp (0.17-34) ... update-alternatives: using /usr/bin/netkit-ftp to provide /usr/bin/ftp (ftp) in auto mode Processing triggers for man-db (2.8.4-2+b1) ...
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.