[raspberryPI] FTP 서버 셋팅

2016. 2. 11. 20:21IOT/Raspberry PI

터미널에서 아래와 같이 입력해서 설치한다. 

sudo apt-get install vsftpd


vim 에디터로 config를 변경한다. 

sudo vim /etc/vsftpd.conf

그런데 샵만 지우고 막 하면 되는데 짜증남 막 안됨 

그냥 복사 붙여 넣기 한다. 

listen=YES 

anonymous_enable=NO 

write_enable=YES 

local_umask=022 

dirmessage_enable=YES 

use_localtime=YES 

xferlog_enable=YES 

connect_from_port_20=YES 

chroot_local_user=YES 

chroot_list_enable=YES 

chroot_list_file=/etc/vsftpd.chroot_list 

secure_chroot_dir=/var/run/vsftpd/empty 

pam_service_name=vsftpd 

rsa_cert_file=/etc/ssl/private/vsftpd.pem 

local_root=/home/pi local_enable=YES 

passwd_chroot_enable=YES


로그인 계정을 입력한다. 

sudo vim /etc/vsftpd.chroot_list 

pi

ftp 서버를 재시작 한다. 

방법은 두개 인데 두번째 안이 뭔가 안정성 있는듯 하다. 

sudo service vsftpd restart


sudo /etc/init.d/vsftpd restart





'IOT > Raspberry PI' 카테고리의 다른 글

[Raspberry] Uart 사용방법  (0) 2017.10.12
네트워크 명 바꾸기  (0) 2017.10.10
[raspberrypi] WebIOPI 설정  (0) 2016.01.27
[RaspberryPi] MySql  (0) 2016.01.22
[RaspberryPI] 명령어정리  (0) 2016.01.19