Skip to content

Commit

Permalink
sftp: support multiple IdentityFile ssh config entries
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Sep 16, 2024
1 parent 83f6af3 commit e007950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
license = {text="BSD"}
requires-python = ">=3.9"
dependencies = [
"paramiko",
"paramiko >= 1.9.1", # 1.9.1+ supports multiple IdentityKey entries in .ssh/config
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion src/borgstore/backends/sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _connect(self):
hostname=scd.get("hostname", self.hostname),
username=scd.get("user", self.username),
port=scd.as_int("port") if "port" in scd else self.port,
key_filename=scd.get("identityfile", None),
key_filename=scd.get("identityfile", None), # list of keys
allow_agent=True,
)
self.client = ssh.open_sftp()
Expand Down

0 comments on commit e007950

Please sign in to comment.