Vsftpd Configuration
Slackware has "vsftpd" installed by default, but it is not activated.
Edit the "vsftpd" configuration file to activate it.
1 2 3 4 5 6 7 8 9 10 |
# vi /etc/vsftpd.conf Change to line 12 NO. anonymous_enable=NO Change line 113 to YES listen=YES Add to last line use_localtime=YES |
Enable ftp as "inetd" is in charge of startup
1 2 3 4 5 6 7 8 9 10 11 12 |
# vi /etc/inetd.conf Uncomment line 28 23 # time dgram udp wait root internal 24 # 25 # These are standard services: 26 # 27 # Very Secure File Transfer Protocol (FTP) server. 28 ftp stream tcp nowait root /usr/sbin/tcpd vsftpd 29 # 30 # Professional File Transfer Protocol (FTP) server. 31 # ftp stream tcp nowait root /usr/sbin/tcpd proftpd |
Activate
1 2 |
# chmod +x /etc/rc.d/rc.inetd # /etc/rc.d/rc.inetd start |
Open FTP port in firewall
1 2 |
# ufw allow ftp # ufw reload |
Confirmation of Vsftpd startup
Check with FTP client
Start FileZilla and change FileZilla settings first, menu "Edit" "Settings"
![](https://korodes.com/wp-content/uploads/2023/09/1ebbb2956a41c7d0fe705b8482e963d1.png)
"Connection" and "SFTP" in the left pane
Click "Add key File" in the right pane
![](https://korodes.com/wp-content/uploads/2023/09/3c3fad6666bf91add1bc459e252bd7ed.png)
Open "id_ed25519.ppk" saved in Windows and click "OK"
![](https://korodes.com/wp-content/uploads/2023/09/1753238e596e2bed23e367281ca056a1.jpg)
![](https://korodes.com/wp-content/uploads/2023/09/f4c6ccd1e7a37ef6f602afdf194f6c21.jpg)
Click "OK" when the following screen appears
![](https://korodes.com/wp-content/uploads/2023/09/b838194356f6631f55ed4db2f4fd33ed.jpg)
In the "Password" field, enter the password you set when you created your SSH public key.
![](https://korodes.com/wp-content/uploads/2023/09/fe8f67e0e381892d05497c5057a74312.jpg)
Return to the initial screen and select "Site Manager" from the "File" menu.
![](https://korodes.com/wp-content/uploads/2023/09/bd86593841851ee6f6a49f4d2e2df89b.png)
Click on "New site"
Protocol : SFTP-SSH File Transfer Protocol
Host : Server IP Address
Port : SSH port number
Logon Type : Ask for password
User : Login username
Click "Connect"
![](https://korodes.com/wp-content/uploads/2023/09/99414254ea06a50d3b276bb365de8532.png)
Password : Password set when creating SSH public key
![](https://korodes.com/wp-content/uploads/2023/09/62891db85670fbee841467d8a2cda3f5.png)
If you see the Windows directory on the left and the Slackware directory on the right, the connection is successful.
![](https://korodes.com/wp-content/uploads/2023/09/9391a6e09abd2031e98bce63af9870d7.jpg)