使用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代表默认登录和允许访问的目录

相关文章:

  • 2021-11-19
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-06-21
  • 2021-07-06
猜你喜欢
  • 2021-11-15
  • 2021-12-31
  • 2021-12-05
相关资源
相似解决方案