메뉴 닫기

ubunt 16.04 버전에 vsftp 설치

vsftp 패키지 설치


root@test-server:~# apt install vsftpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-59 linux-headers-4.4.0-59-generic linux-image-4.4.0-59-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  ssl-cert
Suggested packages:
  openssl-blacklist
The following NEW packages will be installed:
  ssl-cert vsftpd
0 upgraded, 2 newly installed, 0 to remove and 128 not upgraded.
Need to get 132 kB of archives.
After this operation, 398 kB of additional disk space will be used.
Do you want to continue? [Y/n]

옵션 수정


root@test-server:~# cat /etc/vsftpd.conf | egrep -v "^#|^$"
listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO
allow_writeable_chroot=YES
# 추가한 옵션에 사용자의 쓰기 권한과 chroot에 관련된 옵션을 넣었다.

서비스 재시작


root@test-server:~# service vsftpd restart

접속 확인


smile-ac@pc:~$ lftp -u smile-user 115.xxx.xxx.xxx
비밀번호: 
lftp smile-user@xxx.xxx.xxx.xxx:~> put  erase.html 
11325 bytes transferred         

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x