External storage SFTP timeout (how to increase timeout?)

I’m having trouble connectiong to SFTP with external storage.
I suspect it is a timeout issue.

Here is the logging error:
Cannot connect to ***.your-storagebox.de:22. Error 110. Connection timed out at /var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php#1011

When I try to connect through sftp on my server it takes about a minute, but I’ll get through.
Nextcloud stops trying after 10 seconds or so.

My question:

Where can I increase the timeout setting for SFTP external storage?

I’m using Nextcloud 10.1, on Ubuntu 16.04 Server.


Here they initiate a connection with a default timeout of 10s:

Try to increase this value, perhaps it is at other points of the code as well. But instead of increasing timeouts, I would rather investigate why there is such a timeout.

1 Like

I fixed the issue by disabling ipv6 on my server.
Now it works immediately.

Thanks for your input!