Unable to create the backup on remote server
search cancel

Unable to create the backup on remote server

book

Article ID: 281550

calendar_today

Updated On: 04-14-2025

Products

Messaging Gateway

Issue/Introduction

Cannot create backup stored on the remote location.

SMG show error:

Cannot backup the database.
Failed to transmit the file: scp timed out while trying to connect to x.x.x.x ERROR: Unable to send to the specified URL

Cause

This issue is a security feature of SSH and occurs when the Messaging Gateway SCP function (an SSH function) determines the host key of the receiving system has changed.

Resolution

To correct this issue, first make sure that Messaging Gateway is not connecting to an unexpected system and there is no man-in-the-middle intercepting the transfer.

Then, if the connection is as expected, clear the previous key from the Messaging Gateway so it can be recreated:

  1. Log into the Messaging Gateway command line with the default admin account.
  2. Run the following commands:
    • rsa-key clear known_hosts
    • rsa-key test <user@host>
      • Replace "<user@host>" with the username and the hostname or IP (The same used in the scp command that generated the error)
      • For example "rsa-key test <support@127.0.0.1>"
      • You will be prompted for the password for that user
      • A successfull command will return the fqhn of the server.
  3. Run the backup again.

Note: Use the "rsa-key test" command to add the host key of any necessary hosts that the Messaging Gateway may make scp connections to.