Full Backup to an SCP Destination using Key Authentication

jcwacky

Active Member
Sep 4, 2002
30
2
158
I am trying to use cPanel's Full Backup tool to generate and send the backup to a remote server.

The remote server supports the following connection methods:
  • FTPES (FTP with Explicit TLS)
  • SFTP (Key authentication only)
The cPanel Backup tool allows me to select from the following remote destination types:
  • Remote FTP Server
  • Remote FTP Server (passive mode transfer)
  • Secure Copy (SCP)
How can I perform this backup transfer?

Neither of the FTP options appears to work, presumably because they're not using FTPES.

When choosing the SCP option, it seems to require a password and so fails with the error:

Unable to Create Backup
The password that you provided is not correct, or the SSH key is not permitted access: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). at /usr/local/cpanel/Cpanel/API/Backup.pm line 158.
Any suggestions? Surely it can connect via SFTP with key authentication somehow?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston

jcwacky

Active Member
Sep 4, 2002
30
2
158
Sorry, I’m talking about the Backup option in cPanel for an individual site.

Not the WHM backup options for the full server.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Thank you for the clarification. Those are the only options available in the cPanel UI - If you needed to use FTPES or SFTP you'd need to download the backup locally and upload it from your local machine manually to the remote server.

Though the suggestions given in this feature request are not relevant for what you'd like - you might want to vote on this request:

You may also want to open your own feature request for this capability.