10000 [Bug] SCP fails with “Connection closed” during second HestiaCP backup transfer between VPS servers · Issue #4960 · hestiacp/hestiacp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug] SCP fails with “Connection closed” during second HestiaCP backup transfer between VPS servers #4960
Open
@VPS21

Description

@VPS21

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:

  1. Generate a user backup:

    v-backup-user username
    
  2. 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.

  3. Create a second backup:

    v-backup-user username2
    
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0