ssh key_file support #26

Closed
opened 2018-01-05 05:34:03 +00:00 by import_bot · 2 comments
Collaborator

Hi,
Could you had a var on config file to tell which rsa key borg needs to connect with ?
With bash borg script i use :
export BORG_RSH='ssh -i /root/.ssh/backup_astate_rsa'
Thx a lot


Imported from Taiga issue 25 (done). Created on 2016-10-13T09:37:59+0000 by eolien.

Hi, Could you had a var on config file to tell which rsa key borg needs to connect with ? With bash borg script i use : export BORG_RSH='ssh -i /root/.ssh/backup_astate_rsa' Thx a lot --- Imported from Taiga issue 25 (done). Created on 2016-10-13T09:37:59+0000 by eolien.
Author
Collaborator

Finally getting to this! What I've implemented is a new "ssh_command" in the "storage" section of borgmatic config, which maps directly to the BORG_RSH environment variable. So you should be able to use a custom SSH key file that way.

This will go out as part of the next borgmatic release. I'll bump this when it does.


Comment on 2017-11-04T04:58:02+0000 by Dan Helfman.

Finally getting to this! What I've implemented is a new "ssh_command" in the "storage" section of borgmatic config, which maps directly to the BORG_RSH environment variable. So you should be able to use a custom SSH key file that way. This will go out as part of the next borgmatic release. I'll bump this when it does. --- Comment on 2017-11-04T04:58:02+0000 by Dan Helfman.
Author
Collaborator

This was recently implemented in borgmatic 1.1.11. There's a new "ssh_command" in the "storage" section of configuration, where you can specify a custom SSH command and options to use. For instance:

storage:
    ssh_command: ssh -i /root/.ssh/backup_astate_rsa

Enjoy!


Comment on 2017-11-11T18:12:49+0000 by Dan Helfman.

This was recently implemented in borgmatic 1.1.11. There's a new "ssh_command" in the "storage" section of configuration, where you can specify a custom SSH command and options to use. For instance: ``` storage: ssh_command: ssh -i /root/.ssh/backup_astate_rsa ``` Enjoy! --- Comment on 2017-11-11T18:12:49+0000 by Dan Helfman.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#26
No description provided.