FTP sucks. Last week we configured the file upload service available. When I tried again on Monday, it was unavailable again. The user could not log in.
File manager connects to FTP
There are no logs for FTP connections in file manager and browser, logs can be seen on CMD command line
CMD to connect to FTP
useWinSCP
Software is still very reliable, abandon Ftp use WinScp software to do file upload (2020-8-10 second update)
WinSCP software to create a new site connection, log in as the root account, so that you have access to all files in the root directory.
On the right is the file directory for the remote server.
Let’s start with the bitter process of configuring FTP. It’s too difficult
- At first, you failed to configure the FTP site (Linux) in huawei cloud. Because the previous configuration using Huawei cloud server was successful…
- Use Tencent cloud community inside aTencent Cloud server Linux centos 7.4 Setting up an FTP serverThe document failed to configure. User failed to log in, prompting
Login failed: 530 Login incorrect
. - uninstall
FTP
After reinstallation, the FTP configuration file is not modified/etc/vsftpd/vsftpd.conf
To be used after the user is addedchomd
Command to modify folder permissions, useusermod
Command to modify the user root directory, finally successful can upload and download files, then realized that the user can access the server root directory.- After reconnecting to the server, the previous configuration failed…
- There was another flurry, and everything was quiet after using chmod 777-r /. I want to change the root directory permissions to modifiable permissions, so THAT I can use FTP to all directories on the server for file interaction.
- Looked up the impact of this commandRefer to the articleAfter, began to remedy. Bought a zero hour server in Tencent cloud server again, export permission configuration file
linux.chmod.bak
“And then try to upload to the original Tencent cloud server.- Open the previously installed
Xshell
Later found that the probation period, can not be used. So they reinstalled the new cracked versionXshell
Then connected to the cloud server failed to connect, I thought it was Xshell cracked version does not work. Imagine going home from work with no other way to upload files. - When I tried to connect to the server again this morning, I found that the connection was disconnected. Nothing worked. Tried backup image, snapshot, using
A snapshot of the rollback
,Mirror reload system
And other methods can not login server…
- Open the previously installed
Finally, after a morning of hard work, the system had to be reinstalled as a normal image, and the server data had been discarded.
What a profound operation!!
Fortunately, there isn’t much data on the server yet, and the deployed projects are archived on Github. And the most critical nginx configuration in yesterday morning has been written down the article, refer to my other article Tencent cloud server configuration Nginx practice. The other is to install some applications and deploy some applications, for me this novice is also a learning, optimization process.
This afternoon tried again after many times, finally found a relatively simple method reference Ali cloud FTP setup and use – official documents
Speak an aside: Tencent cloud this document is really not complete ah
FTP Service ConfigurationRefer to the article
I’m not going to finish what I didn’t finish last week, because FTP takes too much time. It is unstable and unreliable. uncomfortable
Command for modifying a user’s home directory
usermod -d /home/ftpzyj/pub ftpzyj