Akeeba Backup for Joomla!

#28964 – remote ssh error

Posted in ‘Akeeba Backup for Joomla!’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Sunday, 07 January 2018 05:20 CST
I want to configure the backup-profile to upload my backup to a sftp-server.
Whenever I try to test the connection, I get an error-message "Could not connect to the remote SFTP server. The error message was: Y".
I want to send the backup of a public webserver (hosted at 1&1 in Germany) to a NAS in my local network. The NAS is accessible from the Internet. I've tested this with FileZilla from another computer.

I've tried the post-processing engines "Upload to Remote SFTP (SSH) server" as well as "Upload to Remote SFTP (SSH) server using cURL". Both show the same error.
PHPInfo show "libssh2/1.4.3" in section "CURL".

I hope, you can help me with this problem.

Kind regards,

Custom Fields
Joomla! version (in x.y.z format)
PHP version (in x.y.z format)
Akeeba Backup version (x.y.z format)
Edited by idee-design on 2018-01-07 11:20
Sunday, 07 January 2018 23:59 CST
If both options throw the same nondescript error I would suspect that there is a firewall at play.

You have already confirmed that there is no firewall blocking access on the NAS side since you can connect from a different computer over the Internet. If this is not the case and you only tried connecting from a computer on the same network as the NAS please try connecting to your NAS over the Internet. Simple solution for this test: tether your laptop to your phone's 3G / 4G data connection and try accessing your NAS.

While you're at this, let's also confirm that your NAS does implement an SFTP protocol that PHP (through either the SSH2 or the cURL library) can access. On the same Internet-connected laptop set up a local server (e.g. XAMPP, WAMPServer, MAMP, ...), install Joomla and Akeeba Backup and set up the transfer over SSH. Please note that you may only see the cURL option; the SSH2 module for PHP only became stable as of PHP 7.1 and not all local host packages include it even to this date.

If there is no issue on the NAS side, we might have a firewall on the server side, blocking outbound connections. If I recall correctly that's the default configuration of 1&1. Please ask your host to let you access your NAS over SSH. You will need to provide them the port you're using on your NAS and its (static) IP address.

Nicholas K. Dionysopoulos

Lead Developer and Director

Greek: native

English: excellent

French: basic

Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Please rate this ticket

Help us improve our support services by rating this ticket from one to five stars, according to how much you are satisfied from the handling of this ticket, one being not satisfied and five being very satisfied.

Support Information

Unavailability: Our company will be closed December 22nd, 2017 19:00 EET to December 28th, 2017 09:00 EET due to Christmas holidays. Furthermore, we will be closed December 29th, 2017 19:00 EET to January 3rd, 2018 09:00 EET due to New Year's holidays. During that time our support will be closed for new tickets and replies. Thank you for your understanding and Happy Holidays!

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. We cannot respond to tickets outside of our working hours.

Support policy: Read the complete support policy which is part of our Terms of Service. We kindly remind our subscribers that they have already explicitly and unconditionally accepted the Terms of Service.