Skip to content

Commit

Permalink
Adding support for ssh key and passphrase
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Dec 9, 2022
1 parent 5ed8b7a commit 0a37137
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# [0.1.3] 12/09/2022

## Added

- support for ssh key and passphrase

# [0.1.0] 12/09/2022

Initial release
Expand Down
4 changes: 4 additions & 0 deletions fs_task_queue/plugins/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def _create_client(self, directory):
"port": int(p.port or 22),
"username": p.username or os.getlogin(),
"password": p.password,
"key_file": os.environ.get('PARAMIKO_SSH_KEYFILE'),
"passphrase": os.environ.get('PARAMIKO_SSH_PASSPHRASE'),
"path": p.path,
}

Expand All @@ -83,6 +85,8 @@ def _create_client(self, directory):
port=params["port"],
username=params["username"],
password=params["password"],
key_file=params["key_file"],
passphrase=params["passphrase"],
)
self._sftp_client = self._ssh_client.open_sftp()
return pathlib.Path(params["path"])
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "fs-task-queue"
version = "0.1.2"
version = "0.1.3"
description = "Filesystem based task queue"
readme = "README.md"
requires-python = ">=3.7"
Expand Down

0 comments on commit 0a37137

Please sign in to comment.