使用busybox配置ftp server

使用busybox配置ftp server:

1.在编译busybox时加入tcpsvd和ftpd

2.tcpsvd作用:

Create TCP socket, bind to IP:PORT and listen                                   
for incoming connection. Run PROG for each connection.

3.ftpd作用:

ftpd should be used as an inetd service.                                        
ftpd's line for inetd.conf:                                                     
        21 stream tcp nowait root ftpd ftpd /files/to/serve                     
It also can be ran from tcpsvd:                                                 
        tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve                             

4.在终端上输入:

tcpsvd 0 21 ftpd -w /root

0代表监听所有ip,21代表本地监听端口为21,ftpd代表要执行的程序,-w代表允许上传,/root代表默认登录和允许访问的目录

posted on 2019-06-20 10:18  Alvin2012  阅读(1425)  评论(0编辑  收藏  举报

导航