Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,13 @@ def _get_target_connection(self) -> tuple[str, int]:
return tcp_driver.host, tcp_driver.port or 22

def _load_private_key(self, key_data: str) -> paramiko.PKey:
"""Load private key, auto-detecting type (Ed25519, RSA, ECDSA, DSS)."""
"""Load private key, auto-detecting type (Ed25519, RSA, ECDSA)."""
key_file = io.StringIO(key_data)

key_classes = [
paramiko.Ed25519Key,
paramiko.RSAKey,
paramiko.ECDSAKey,
paramiko.DSSKey,
]

for key_class in key_classes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ def test_unsupported_key_type(self):
"jumpstarter_driver_ssh_mitm.driver.paramiko.ECDSAKey.from_private_key",
side_effect=paramiko.SSHException("Not ECDSA"),
),
patch(
"jumpstarter_driver_ssh_mitm.driver.paramiko.DSSKey.from_private_key",
side_effect=paramiko.SSHException("Not DSS"),
),
):
instance = SSHMITM(
children={"tcp": TcpNetwork(host="127.0.0.1", port=22)},
Expand Down
2 changes: 1 addition & 1 deletion packages/jumpstarter-driver-ssh-mitm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"anyio>=4.10.0",
"jumpstarter",
"jumpstarter-driver-network",
"paramiko>=3.0.0",
"paramiko>=3.6.0",
]

[project.entry-points."jumpstarter.drivers"]
Expand Down
9 changes: 5 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading