borg key import. can it work with something else than ssh?

Borg backup key import alternatives to SSH 2025

Specified 'Borg backup' for clarity, included 'alternatives to SSH' to focus on different methods, and added the current year to ensure relevance in results.

Exploring Borg Backup Key Import: Alternatives to SSH

Borg Backup, a powerful deduplicating backup program, predominantly utilizes SSH (Secure Shell) as its primary transport method for connecting to backup locations. However, many users inquire whether it's possible to use alternatives to SSH for key imports and data transfers. In this article, we will delve into the options available for Borg Backup regarding key imports and transport methods beyond SSH.


Understanding Borg Backup Key Import

What is Borg Backup?

Borg Backup is designed for efficient and secure backup creation, which is especially useful in scenarios where data deduplication can save storage space. The typical workflow involves the Borg client making a connection to a backup server to execute operations such as backups or restores.

Key Import Mechanism

Borg utilizes keys (either SSH keys or repokey) to configure secure access to repositories. The repokey system allows you to manage access without relying solely on SSH. However, if you want to connect to remote repositories, SSH remains a common choice, mainly because it provides encryption and secure access.


Alternatives to SSH for Borg Backup

While SSH is commonly used, Borg does support some alternatives for connecting to remote storage. Here are a few options:

1. SFTP (Secure File Transfer Protocol)

For users who need an alternative to SSH, SFTP can effectively be employed. SFTP operates over SSH but can handle scenarios where SSH might not be directly available. Users can configure Borg to connect through SFTP as an alternative transport method, utilizing password authentication in lieu of SSH key-based authentication.

2. Local Filesystem

For local backups, Borg can simply use the local filesystem. In this scenario, no SSH keys are required since the data is backed up directly on the same machine or a physically accessible server.

3. Cloud Storage Solutions

Recent developments have introduced support for using cloud storage services as the backup target. Borg works with Rclone, which enables connections to over 70 cloud providers without requiring SSH. This inclusion allows users to back up their data to various cloud platforms like Google Drive or Dropbox efficiently.

4. Other Protocols

Beyond SFTP, users can explore various other protocols depending on their server configurations. Should the Borg repository be accessible through different means, such as WebDAV, users might be able to configure their environment accordingly—though with limitations compared to the native SSH connections that Borg was originally designed for.


Limitations of Non-SSH Methods

While alternatives to SSH exist, they may not always offer the same level of efficiency, security, or compatibility. For instance, using local filesystem backups does not allow remote access, whereas cloud services may incur extra complexity during setup. Furthermore, certain features available in Borg’s SSH implementation may not translate seamlessly to other protocols.


Conclusion

In summary, while SSH is the traditional transport method for Borg, users have viable alternatives such as SFTP, local storage, and cloud backups using Rclone. Each method comes with its unique set of advantages and limitations, and the choice largely depends on user requirements and the environment in which Borg is deployed. Ultimately, as backup needs evolve, exploring these alternatives can provide enhanced flexibility and security in managing data.

For further details, you can refer to the official Borg Documentation and community discussions on platforms like GitHub and support forums.

Sources

10
1
Support for protocols other than SSH · Issue #1070
GitHub

The thing with webdav vs ssh is that with SSH you can run borg copy on the server, and then the two talk to each other using ssh as the data pipe.

2
Borg's encryption features seems fine – but what mistakes ...
Reddit

As Borgbackup might be the right tool you restore from when you lost your /home you'd better save your ssh key somewhere else, too.

3
Backing up in pull mode - Borg Documentation - Read the Docs
Borgbackup

Typically the borg client connects to a backup server using SSH as a transport when initiating a backup. This is referred to as push mode.

4
[solved] borg backup & ssh
Forums

Re: borg backup & ssh​​ pkexec and polkits are a replacement/alternative to sudo and sudoers. Once upon a time the advice was don't run graphical ...

5
Top Borg Alternatives in 2025 - Software
Slashdot

Find the top alternatives to Borg currently available. Compare ratings, reviews, pricing, and features of Borg alternatives in 2025.

6
Master BorgBackup 1.4.0: Init, Create, Prune, Remote SSH, ...
YouTube

Resistance is futile when it comes to mastering backups with BorgBackup 1.4.0! In this comprehensive guide, we'll cover everything you ...

7
Frequently asked questions — Borg - Deduplicating Archiver ...
Borgbackup

Please note that borg repokey keys are stored inside the repository. You MUST make sure to have an independent backup of these keyfiles, otherwise you cannot ...

8
How to back up and restore Nextcloud AIO remotely using ...
Nextcloud

How to make a Nextcloud backup remotely using Borg · 1. Submit the backup location · 2. Start a new backup container · 3. Authorize the SSH key · 4.

9
BorgBackup 2.0 supports Rclone – over 70 cloud providers ...
News

rclone and restic are not direct alternatives. They have a slight overlap, but are also different. Rclone is more versatile for moving/copying files. Restic has ...

10
Install and Configure BorgBackup
Community

If SSH is not available on the Storage Box, you must use SFTP or something similar for this step. For Borg, you can use password authentication, ...