Error when adding Backup SFTP destination

Hi there.

I’m running into the following error when trying to add SFTP backup destination on https://:8090/backup/backupDestinations:


[02.28.2024_05-22-34] /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/backupUtilities.py submitDestinationCreation --ipAddress <IP_ADDRESS> --password <PASSWORD> --port <PORT> --user <USER>
[02.28.2024_05-22-34] /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/backupUtilities.py submitDestinationCreation --ipAddress <IP_ADDRESS> --password <PASSWORD> --port <PORT> --user <USER>
[02.28.2024_05-22-34] ENzOHF5xY1kMla4pUo4MvgBHsVgrgh2lsudo /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/backupUtilities.py submitDestinationCreation --ipAddress <IP_ADDRESS> --password <PASSWORD> --port <PORT> --user <USER>
[02.28.2024_05-22-35] chmod 600 /root/.ssh/cyberpanel.pub
[02.28.2024_05-22-36] chmod 644 /root/.ssh/cyberpanel.pub
[02.28.2024_05-22-36] [02.28.2024_05-22-35] chmod 600 /root/.ssh/cyberpanel.pub
[02.28.2024_05-22-36] chmod 644 /root/.ssh/cyberpanel.pub
General Error: [Errno 2] No such file [sendKey]
  • I double checked credentials (user, pasword, IP, port) and that the SSH and FTP ports are open.
  • I also can successfully access VPS with specified user credentials both SSH and FTP servers.
  • Remote destination path is owned by provided user and has read/write permissions set.

This seems to me like a bug in /usr/local/CyberCP/plogical/backupUtilities.py script sendKey function. Any idea how to workaround this?

Regards,
Richard

Solved. The issue was, that I need to create ~/.ssh/authorized_keys file with proper permissions in the destination machine for the user.

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.