Development/Linux

CentOS 에 vsftpd 설치하기

가비닷 2022. 6. 14. 15:45

1. yum으로 vsftpd 설치하기

 

yum -y install vsftpd

 

2. vsftpd.conf 파일 수정하기

 

vi /etc/vsftpd/vsftpd.conf

 

* 기본적으로 수정이 필요한 설정

 

# anonymous 접속 가능 여부
anonymous_enable=NO
#유저 홈디렉토리보다 상위로 이동 접근 제한
chroot_local_user=YES
#YES일 경우 standalone 형태로 운영(NO는 inetd로 운영)
listen=YES
#IP V6 접속 가능 여부
listen_ipv6=NO

#Active Mode 실행
pasv_enable=YES
pasv_max_port=11000
pasv_min_port=10000

 

3. 서비스 재시작

 

systemctl restart vsftpd

 

4. 서버 시작 프로그램에 등록 

 

systemctl enable vsftpd