Ubuntu ya vsftpd ftp server kurmak secure ftp kurmak, Howto install vsftpd install secure ftp server

Paylaş.

Ubuntu ya vsftpd ftp server kurmak secure ftp kurmak, Howto install vsftpd install secure ftp server

ubuntuya kurabileceğimiz open souse bazı ftp programları aşağıdaki gibidir.
– proftpd – Versatile, virtual-hosting FTP daemon

– vsftpd – The Very Secure FTP Daemon

– ftpd – FTP server

– wu-ftpd – powerful and widely used FTP server

– wzdftpd – A portable, modular, small and efficient ftp server

– pure-ftpd – Pure-FTPd FTP server

burada ben sizlere secure olan vsftpd yi nasıl kuracağınızı anlatacağım

[youtube tanll-JM8y8]

[youtube rtHywU7EjVw]

vsftpd i çok güvenli  dosya transferi gerçekleştiren bir programdır  ( File Transfer Protocol )

kullandığı ayar dosyaları :

Default ftp port : 21

Default configuration file : /etc/vsftpd.conf

Aslında neden ftp kuruyoruz bundan biraz bahsedeyim   ubuntu sistemini bir web sitesi geliştirmesi veya yayını yapmak yani webserver oalarak hizmet vermesini istiyorsanız
daha önceki php, mysql yazılarımı okuyabilirsiniz : http://www.karadere.com/blog/ubuntu-apache-ve-php-kurulumu-how-to-install-on-apache-and-php-and-mysql.html

baska bir clienttan dosya atmak için ftp kullanmamız gerekmektedir.

adım  1: vsftpd kurulumu

$ sudo apt-get install vsftpd
çıktısı :

Password:
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 0 not upgraded.
Need to get 121kB of archives.
After unpacking 438kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com edgy/main vsftpd 2.0.4-0ubuntu5 [121kB]
Fetched 121kB in 0s (246kB/s)
Selecting previously deselected package vsftpd.
(Reading database ... 31396 files and directories currently installed.)
Unpacking vsftpd (from .../vsftpd_2.0.4-0ubuntu5_amd64.deb) ...
Setting up vsftpd (2.0.4-0ubuntu5) ...
Adding system user `ftp' with uid 106...
Adding new user `ftp' (106) with group `nogroup'.
Not creating home directory `/home/ftp'.
 * Starting FTP server: vsftpd

Adım  2:  ayarları yapmak  /etc/vsftpd.conf

The default vsftpd configuration file is /etc/vsftpd.conf. You need to edit this file using text editor such as vi:
$ sudo vi /etc/vsftpd.conf

Add the following line (uncomment line) to the vsftpd configuration file:
local_enable=YES
Above config directive will allow local users to log in via ftp

If you would like to allow users to upload file, add the following to the file:
write_enable=YES

For security you may restrict local users to their home directories. Add the following to the file:
chroot_local_user=YES

Save and close the file.

Adım  3:  servisi yeniden başlatın vsftpd

To restart vsftpd type the command :
$ sudo /etc/init.d/vsftpd restart
Output:

* Stopping FTP server: vsftpd                                                                                       [ ok ]
 * Starting FTP server: vsftpd                                                                                       [ ok ]

How do I use ftp command line utility?

Now you should be able to FTP to this server with any account that exists on the system except for the root user. From Windows or other Linux system use ftp client, type the command:
$ ftp ftp.nixcraft.in
Output:

Connected to ftp.nixcraft.in.
220 (vsFTPd 2.0.4)
Name (ftp.nixcraft.in:vivek): vivek
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/"
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-r--r--    1 1000     1000        91798 Aug 16 08:26 apf-current.tar.gz
-rwxr-xr-x    1 1000     1000          156 Nov 10 07:05 iptables.stop
drwxr-xr-x    3 0        0            4096 Dec 23 11:11 postfix
-rw-r--r--    1 0        0        10481942 Nov 29 23:35 webmin_1.310_all.deb
226 Directory send OK.
ftp> quit
221 Goodbye.

kullanılan açık  FTP port  iptables (optional)

Add following rules to your iptables script. Assuming that default incoming policy is drop. If protocol is TCP and destination port is 21 (ftp):
iptables -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
See – How do I open open ftp port 21 using iptables for more information.

There are a large number of other configuration options available for vsftpd that can be used to fine tune ftp server. Read vsftpd.conf man page by typing following command:
$ man vsftpd.con

 

 

daha fazlası için : http://howto.gumph.org/content/setup-virtual-users-and-directories-in-vsftpd/

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)