Print
카테고리: [ Operating System ]
조회수: 8780

1. 개요

리눅스 서버에 FTP 데몬을 설치해보자.


2. 설치방법

2-1. yum 설치

$ sudo yum install vsftpd
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:2.2.2-13.13.amzn1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================================
 Package                                       Arch                                          Version                                                    Repository                                        Size
===============================================================================================================================================================================================================
Installing:
 vsftpd                                        x86_64                                        2.2.2-13.13.amzn1                                          amzn-main                                        161 k

Transaction Summary
===============================================================================================================================================================================================================
Install  1 Package

Total download size: 161 k
Installed size: 320 k
Is this ok [y/d/N]: y
Downloading packages:
vsftpd-2.2.2-13.13.amzn1.x86_64.rpm                                                                                                                                                     | 161 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : vsftpd-2.2.2-13.13.amzn1.x86_64                                                                                                                                                             1/1
  Verifying  : vsftpd-2.2.2-13.13.amzn1.x86_64                                                                                                                                                             1/1

Installed:
  vsftpd.x86_64 0:2.2.2-13.13.amzn1

Complete!

2-2. /etc/vsftpd/vsftpd.conf

2-2-1. anonymous 접속 방지

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO

2-2-2. 로컬 디렉토리만 사용하게 설정

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_local_user=YES

2-3. OS 계정 생성

2-4. 데몬 기동

$ sudo /etc/init.d/vsftpd restart
Shutting down vsftpd:                                      [FAILED]
Starting vsftpd for vsftpd:                                [  OK  ]