Curlftpfs: Error connecting to ftp

Curlftpfs on openSUSE works fine to connect to devices on the local network. But not on an external ftp-site. Am using this in /etc/fstab:

curlftpfs#ftpuser:password@ftp.site.com:21 /mnt/ftp fuse noauto,gid=users,umask=000 0 0

This works with Fedora 35 and Kubuntu 21.10, but not with openSUSE 15.3, Would appreciate assistance!

Firewall ?

Typo - should be …#ftpuser:password@…

Please use copy/paste to avoid typos and then put computer information between CODE tags (the # button in the tool bar of the post editor) in your posts.

I understand there is a password there that you may not want to show. Then change that and mention that you changed some of the text in the CODE section, so that people do not get confused.

Thanks Henk. As to firewall I have never changed the installed defaults, so it is quite new to me. Moved “ftp” to allowed where I could see “ssh”, which was: dmz, external, home, internal and work. Did not help. Will check Fedora and Kubuntu to see what firewall settings are being used.

The most easy way to check if a firewall hinders you is just switch it off for a test. If the test then shows that it is the firewall, one can start finding out how to change it’s configuration.

Just changing the configuration for a port and then trying mostly will end up in endless try and error and still not knowing if it is the firewall or something complete different.

Yes, neither Fedora nor Kubuntu had the firewall active, so I made it inactive on openSUSE. The problem remains.

OK, then it is not the firewall (just my suggestion for the most obvious).

In fact I see that you only say that it does not connect (and that it “works” in other distribution, which means “it does not work” in openSUSE).

You may know that “it does not work” and equivalents are not very illumination to any potential helpers.

I think that at least a

mount /mnt/ftp

should be posted here to see if there are any messages.

**localhost:/mnt/sdb5/downloads #** mount /mnt/ftp
Error connecting to ftp:  
**localhost:/mnt/sdb5/downloads #**

As per the title

Yes, but that title does not explain if that is your conclusion, or the output of a, not even mentioned, command. We are no mind readers and are very suspicious ;).

Not a very explaining error message. I assume the real message should have been given after the :, but there is nothing.
You could take a look at the system logs.

Thanks Henk, cannot find anything suspicious in the systemlogs in relation to my problem

Strange, I would expect something logged about the mount, it succeeding or not.

Tried verbose:

**localhost:/mnt/sdb5/downloads #** curlftpfs ftp.ftpsite.com /mnt/ftp/ -o -v user=ftpuser:password,gid=users,umask=000
* Couldn't find host ftp.ftpsite.com in the .netrc file; using defaults
*   Trying xx.yy.zzz.80:21...
* TCP_NODELAY set
* Immediate connect fail for xx.yy.zzz.80: Network is unreachable
* Closing connection 0
Error connecting to ftp:  
**localhost:/mnt/sdb5/downloads #**


Could not find a .netrc file in the home or root directories. Could not find it in the Fedora or Kubuntu partitions either.

Created a .netrc file for my home directory, content:

ftp.ftpsite.com ftpuser password

Still couldn’t find host ftp.ftpsite.com in the .netrc file etc

Wrong syntax for .netrc file so try this

machine ftp://ftp.site.com
login ftpuser
passwprd userpassword

Couldn’t find host ftp.hallergard.com in the .netrc file

What is not clear in this error message?

Could not find a .netrc file in the home or root directories. Could not find it in the Fedora or Kubuntu partitions either.

This is red herring.

Thanks Arvidjaar. I prefer pickled herring, so please explain what is clear about the error message!

I have a “.netrc” file in my home directory. I created it with a text editor, maybe 30 years ago. I’m not really using it now.

It just sets some defaults for an “ftp” session. The message you are seeing appears to be just an informational message telling you that the file was not found. It is more common for the software to not give that message.

To me, it doesn’t look like a problem. Or, as arvidjaar said, it is a red herring.

Thanks, but my problem remains that I cannot mount the remote ftpsite