Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".(Japanese Version)

Rocky Linux8.4 : FTP Server

FTP Server Inatall

1. vsftpd Install

2. vsftpd configuration

Save the unedited vsftpd.conf with .bak

①Edit configuration file

②Add users to allow directory access to upper level

In my case I wrote huong.

③Specify IP addresses to allow connections in /etc/hosts.allow
192.168.11.0/24 is the setting that allows all local IP addresses in my environment.

Write vsftpd:ALL (deny all connections) in /etc/hosts.deny
This setting overrides hosts.allow. That is, everything is denied, and IP addresses specified in hosts.allow are allowed.

④Enable vsftpd autostart and start it
⑤From windows side, check if you can connect with FileZilla.
Open the ftp port with firewall before connecting
Start FileZilla and change FileZilla settings first, menu "Edit" "Settings
"Connection"  "SFTP" in the left pane
Click "Add key File" in the right pane
Open "id_rsa.ppk" saved in Windows
Click "OK
In the "Password" field, enter the password you set when you created your SSH public key.
Return to the initial screen and select "Site Manager" from the "File" menu.
Click on "New site  ↓
Enter the following settings for each item and click "Connect
Protocol : SFTP-SSH File Transfer Protocol
Host : Server IP Address
Port : 2244(Preconfigured SSH port number)
Logon Type : Ask for password
User  : General user name (server login user)
If the connection is successful, the server directory is displayed on the right and the Windows directory on the left.  ↓
Copied title and URL