Linux installation vsftpd and configuration

Install vsftpd 1. yum installation Check if installed rpm -qa | grep vsftpd Uninstall vsftpd yum remove vsftpd yum installation # Installation yum install vsftpd 2. Start # enable service vsftpd start # closure service vsftpd stop # Restart service vsftpd restart # boot chkconfig vsftpd on 3. Create user # Create user useradd -d […]

linux installation vsftpd

Linux installation vsftpd Install vsftpd as an attachment upload and download service Article directory linux installation vsftpd 1. What is vsftpd? 2. Usage steps 1.Installation 2.Configuration 3. Possible problems The first situation: selinux ftp settings Second case: It may be the cause of the firewall The third situation: pam.d setting problem 4. Suggestions Summarize 1. […]

jenkins configuration ftp release

We in Jenkins publish our compiled firmware to the product library. There are many upload methods. Here are two methods of FTP: 1. GUI plug-in configuration Description: This plug-in can publish the built product (for example: Jar) to FTP. Official description: Publish Over FTP Plugin installation steps: System Management→Manage Plugins→Optional Plugins→Artifact Uploaders→Publish Over FTP Plugin […]

springboot embedded ftp server

A recent project requires an ftp server to be embedded in the project. After starting the project, you can use client tools such as Filezila to push files to the server ftp Introduce dependencies <dependency> <groupId>org.apache.ftpserver</groupId> <artifactId>ftpserver-core</artifactId> <version>1.1.1</version> </dependency> InitFtpServer Launcher of ftp service package com.ruoyi.web.controller.tool.ftp; import org.apache.ftpserver.FtpServer; import org.apache.ftpserver.ftplet.FtpException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import […]

[Configuring ftp under window 11]

Configure ftp on a Windows computer. After trying it, I summarized the following two methods: 1. Preparation 1. This computer Open the This PC desktop icon on the computer, right-click the mouse-Personalization-Theme-Desktop Icon Settings 2. Configure the local IP address Use ipconfig to check the IP address of this machine, and then Go to Control […]

Local FTP YUM source error handling

1. Problem description After the OS was upgraded to Anolis 8.6, the yum source of centos 6.5 was still needed. After restoring it, yum was updated and the following error was reported: Errors during downloading metadata for repository base’: Curl error (8): Weird server reply for ftp://10.172.1.206/centos6.5/media/repodata/repomd.xml [Got a 500 ftp-server response when 220 was […]

Linux restricts user permissions, JSch, ChannelSftp, ChannelExec, java.util.InterruptedException, /etc/ssh/sshd_config, setfacl

Problem background: Other systems need to get files on the server when requesting my interface, but I don’t want to give them to users with more permissions. So I want to create a new user sftpuser on Linux. This user can only download files from the directory and subdirectories I provided, and cannot perform other […]

Java calls ftp to implement upload and download

package com.sqa.frontinterface.util; import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.IOUtils; import org.apache.commons.net.ftp.*; import javax.servlet.http.HttpServletResponse; import java.io.*; import java.net.SocketException; import java.net.URLEncoder; import java.util.List; import java.util.TimeZone; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; import static com.alibaba.nacos.client.utils.EnvUtil.LOGGER; /** * ftp upload and download tool class * <p>Title: FtpUtil</p> * <p>Description:</p> * * @version 1.0 */ @Slf4j public class Ftp { private FTPClient ftpClient; private String […]

FTP protocol (client)

1. Introduction FTP (File Transfer Protocol) is a standard protocol for file transfer. Its main function is to transfer and share files between the server and the client. The FTP protocol runs over a TCP connection, ensuring the reliability of file transfers. FTP usually uses two ports, 20 and 21. Among them, port 21 is […]