FTP problem


First of all, I am new to openSUSE. Did not have a Windows license for my school laptop that I bought for a hefty $50, so I figured I’ll just install a linux distro, as we did the linux/lubuntu basics in high school in Finland.

Before reading this heresy of a Konsole history file, please note that I am new to Linux. Regarding vsftpd.conf changes, I’ve tried connect_from_port_20=YES I’ve tried this with ports 21 and 22 aswell.

So, I am trying to setup an VSFTPD service to latest openSUSE Tumbleweed (15.2 I believe?), but Windows’ FileZilla just won’t connect to it. Windows-side, I’ve enabled ports 20,21,22 for usage with no help. Also tried to connect without a firewall. Here is my history from Konsole in openSUSE, related to my project:

87 2020-09-08 21:22:24 sudo zypper search ftp
101 2020-09-08 21:29:53 sudo zypper in vsftpd
102 2020-09-08 21:30:08 sudo cd /etc/init.d/
114 2020-09-08 21:32:14 sudo cat /etc/vsftpd.conf
115 2020-09-08 21:32:31 cat <<EOF | sudo tee /etc/vsftpd.conf


116 2020-09-08 21:33:55 echo “anon” | sudo tee /srv/ftp/anon.txt
117 2020-09-08 21:34:04 sudo systemct | enable vsftpd
118 2020-09-08 21:34:10 sudo enable vsftpd
131 2020-09-08 21:37:12 sudo service --status-all
136 2020-09-08 21:38:01 vsftpd.service --status
137 2020-09-08 21:38:08 sudo service vsftpd
138 2020-09-08 21:38:29 sudo /usr/sbin/service vsftpd restart
139 2020-09-08 21:38:40 sudo /usr/sbin/service smb restart
140 2020-09-08 21:40:35 sudo vi /etc/vsftpd.conf
141 2020-09-08 21:42:28 sudo /usr/sbin/service smb restart
142 2020-09-08 21:42:31 sudo /usr/sbin/service vsftpd restart
144 2020-09-08 21:44:56 sudo vi /etc/vsftpd.conf
145 2020-09-08 21:47:40 sudo vsftpd --status
146 2020-09-08 21:47:45 sudo service vsftpd --status
147 2020-09-08 21:47:50 service --help
148 2020-09-08 21:47:59 service vsftpd --help
150 2020-09-08 21:51:53 sudo /usr/sbin/service vsftpd restart
151 2020-09-08 21:52:02 sudo /usr/sbin/service smb restart
157 2020-09-08 21:55:07 sudo cat /etc/vsftpd.conf
163 2020-09-08 21:56:58 man firewall-cmd
166 2020-09-08 21:57:57 sudo firewall-cmd --add-service=ftp --permanent
167 2020-09-08 21:58:04 sudo firewall-cmd --reload
170 2020-09-08 21:59:46 sudo vi /etc/vsftpd.conf
171 2020-09-08 22:00:12 sudo /usr/sbin/service vsftpd restart
172 2020-09-08 22:01:48 sudo /usr/sbin/service openssh restart
175 2020-09-08 22:03:15 sudo /usr/sbin/service ssh restart
177 2020-09-08 22:11:09 sudo /usr/sbin/service vsftpd restart
178 2020-09-08 22:11:29 sudo firewall-cmd
179 2020-09-08 22:11:33 sudo firewall-cmd --status
180 2020-09-08 22:13:45 sudo vi /etc/vsftpd.conf
181 2020-09-08 22:14:20 sudo /usr/sbin/service vsftpd restart
182 2020-09-08 22:15:46 sudo systemctl enable vsftpd
183 2020-09-08 22:15:53 sudo systemctl restart vsftpd
184 2020-09-08 22:16:13 sudo firewall-cmd --add-service=ftp --permanent
185 2020-09-08 22:17:08 sudo vi /etc/vsftpd.conf
186 2020-09-08 22:17:36 sudo systemctl restart vsftpd
187 2020-09-08 22:17:52 sudo firewall-cmd --reload
188 2020-09-08 22:19:21 firewall-cmd --get-default-zone
190 2020-09-08 22:19:49 firewall-cmd --zone=public --add-port=21/tcp --permanent
192 2020-09-08 22:20:28 firewall-cmd --zone=public --add-port=20/tcp --permanent
194 2020-09-08 22:20:53 firewall-cmd --zone=public --add-port=22/tcp --permanent
195 2020-09-08 22:20:54 sudo firewall-cmd --reload

And welcome to openSUSE.
You might find that once you learn about the features openSUSE provides, your experience will be easier than what you remember in Lubuntu.

The first thing to know about openSUSE is that we don’t have a strict policy forbidding the use of “su” in fact unless you enjoy typing “sudo” over and over again for each command, you can simply open a console, switch to persistent elevated permissions by executing a “su” or some would prefer a “su -” which does more than elevate permissions but also resets your user environment to root, then do your work by just executing commands until you’re done, then close the console or you can “su username” to return to your normal User console.

The next thing you should be aware of is that for most “server” apps like FTP plus a great many other scenaros, there is a YaST module which will guide you to configure and set up a simple, standard configureation. In the case of FTP, this will mean that FTP will not have its own User database or point to unusual locations, the FTP directores will be standard (IIRC /srv/ftp/) and will support either Anonymous or the system’s User accounts.

At various time just installing vsftpd would also install the YaST FTP module. If you don’t see it, you can install it with the following command

zypper install yast2-ftp-server

BTW - openSUSE supports several FTP apps, IIRC the YaST FTP module supports vsftpd and proftpd.

I don’t think you are trying to set up something more complicated, but if you are then the vsftpd documentation that’s inat’s installed on your machine is good.
Also, if you aren’t aware of the difference between Active and PASV FTP, read up on that. Your server configuration, firewall configuration and choice of client all need to match one of the two modes… Active is simplest (ports 21, 20) and if you choose instead to configure PASV can be a bit of an advanture.


The following is the FTP section of the official openSUSE documentation…

Skimming it quickly, I don’t see any serious problems that jump out at me… despite its very inexpert use of “passive ftp” vs the correct PASV FTP.



And just addingg my own SOP
Use a command line fTP client for first setups, in general it supports only Active FTP which ensures you don’t have a mode and ports mis-match. And this should apply whether your client is a MSWindows machine or a Linux machine.
Set up Anonymous authentication first.

After the above,
Then you can step by step modify the complexity by adding PASV support if you wish, and User (non-anonymous) authentication which often involve only a change in the configuration file or running the YaST FTP module again.


Hello TSU,

Thank you for the help. I will try to setup the YaST module later tonight.

Just have in mind that there are two branches of openSUSE, Leap and Tumbleweed. The former is a fixed release and also more suitable for new users and the latter is a rolling release. :wink: