Description
Describe the bug
I’ve experienced a recurring issue when transferring HestiaCP backups between VPS servers hosted on Hetzner and OVH Cloud, both running Debian 12.
Steps to Reproduce:
-
Generate a user backup:
v-backup-user username
-
Upload the backup to a remote VPS using:
scp /backup/username.2025-04-26_01-33-23.tar root@<destination-ip>:/backup/
This works correctly.
-
Create a second backup:
v-backup-user username2
-
Try to upload the second backup using the same method:
scp /backup/username2.2025-04-26_01-33-23.tar root@<destination-ip>:/backup/
This time, the command fails with the error:
scp: Connection closed
After this failure, I’m also unable to connect to the destination server using SFTP as root (e.g., via FileZilla).
Workaround:
To fix the issue, I had to copy the /etc/ssh/sshd_config
file from an older working VPS (also running HestiaCP) and replace it on the new server. After restarting the SSH service, everything works as expected — I can run scp
and SFTP without any problem.
Environment:
- VPS Providers: Hetzner and OVH Cloud
- OS: Debian 12
- HestiaCP installed on both servers
Notes:
- This issue happened across multiple fresh VPS installations.
- The problem seems related to the default SSH configuration, possibly affected during or after HestiaCP installation or by the OS baseline setup.
- Might be worth reviewing if any HestiaCP setup step adjusts SSH settings in a way that causes this behavior.
Would be great if the HestiaCP team could look into this and provide guidance for a more permanent fix or include a configuration sanity check during installation.
Hestia Control Panel Version
v1.9.3
Operating system
Debian 12