FTP server – GoSecure! https://www.gosecure.it/blog MyDear(root)Shell Thu, 31 Oct 2013 07:18:27 +0000 en-US hourly 1 https://wordpress.org/?v=5.6 Install ftp server on Kali Linux https://www.gosecure.it/blog/art/93/note/install-ftp-server-on-kali-linux/ https://www.gosecure.it/blog/art/93/note/install-ftp-server-on-kali-linux/#comments Thu, 13 Jun 2013 12:16:34 +0000 https://www.gosecure.it/blog/?p=93 read more)]]> This is a simple how to install vsftpd server on Kali Linux. The more important configuration file is /etc/vsftpd.conf. Read carefully it and refer to vsftpd home site.

Download and install vsftpd:

root@kali:~# apt-get install vsftpd

If you want to allow local users to log in and to allow ftp uploads you have to edit file /etc/vsftpd.conf uncommenting the following:

local_enable=YES
write_enable=YES

Also set this parameters:

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

To secure your server, disable anonymous access if not required:

anonymous_enable=NO

If you wish you can also modify the banner present in vsftpd.conf, but this is usefull only to prevent simple banner grabbing. A specific tool such as NMAP will discover your server version anyway.

Now create the file /etc/vsftpd.chroot_list and add the local users you want allow to connect to FTP server.
Start service and test connections:

root@kali:~# service vsftpd start
Starting FTP server: vsftpd.
root@kali:~# netstat -nat | grep 21
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN  
root@kali:~# ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.3.5)
Name (127.0.0.1:root): user-one
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
]]>
https://www.gosecure.it/blog/art/93/note/install-ftp-server-on-kali-linux/feed/ 2