BusyBox built-in FTP server usage

Source: Internet
Author: User

Reference: http://blog.chinaunix.net/uid-20564848-id-74041.html

The latest busybox has been integrated into the FTP server layer to be FTPD, using the following methods:

Method One:
# TCPSVD 0 ftpd-w/ftpd_dir &
The above 0 indicates that all IP addresses are listening
If set to 127.0.0.1 then only the development Board local arm can be FTP
For example, the IP address of the Development Board eth0 is set to 172.20.0.2, then you cannot log on through this IP
So the above specifies that the IP equals 0, then the FTPD server can be used regardless of the data from 127.0.0.1 or 172.20.0.2 network address.
FTPD-W here The parameter-W indicates that the client can write to the directory
You can use the-t and-t parameters to set the client to actively disconnect the client after the maximum time without any action, namely: Idle and Absolute Timeouts ftpd
The Default-T is 2 minutes =2 * 60,-t for 1 hours =1 * 60 * 60

Ftpd_dir is the directory where the client logs in to FTP and can be set as needed

Method Two:

# vi/etc/inetd.conf
Stream TCP nowait root ftpd ftpd-w/gliethttp_ftpd_dir
# inetd//inetd executes the command line in the/etc/inetd.conf script so that ftpd runs as a daemon

Note: 1) The above 2 modes of operation of the FTPD will not be seen in PS ftpd process operation;

2) The user account information of the two methods is the same as the system (passwd).

Attached: TCPSVD usage

~ # TCPSVD
BusyBox v1.23.0 (2015-09-19 18:45:51 CST) multi-call binary.

USAGE:TCPSVD [-hev] [-c n] [-C n[:msg]] [-B N] [-u USER] [-l NAME] IP PORT PROG

Create TCP socket, bind to Ip:port and listen
For incoming connection. Run PROG for each connection.

IP IP to listen on, 0 = all
Port Port to listen on
PROG ARGS program to run
-L NAME Local hostname (else looks up local hostname in DNS)
-U user[:grp] change to User/group after bind
-C n Handle up to N connections simultaneously
-B N allow a backlog of approximately N TCP SYNs
-C N[:msg] allow-only up-to-N connections from the same IP
New connections from this IP address is closed
Immediately. MSG is written to the peer before close
-H Look up peer ' s hostname
-e Don ' t set up environment variables
-V Verbose

BusyBox built-in FTP server usage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.