Skip to content

Commit

Permalink
Update ruckus_fastiron.py KexAlgorithms & HostKeyAlgorithms
Browse files Browse the repository at this point in the history
_modify_connection to add DH group 14 & g1 KexAlgorithms and ssh-rsa HostKeyAlgorithms
  • Loading branch information
EdificomSA committed Jul 2, 2024
1 parent 235217b commit 003e0f3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions netmiko/ruckus/ruckus_fastiron.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
class RuckusFastironBase(CiscoSSHConnection):
"""Ruckus FastIron aka ICX support."""

def _modify_connection_params(self) -> None:
"""Modify connection parameters prior to SSH connection."""
paramiko_transport = getattr(paramiko, "Transport")
paramiko.Transport._preferred_kex.add(
"diffie-hellman-group14-sha1",
"diffie-hellman-group1-sha1",
)
paramiko.Transport._preferred_keys.add(
"ssh-rsa",
)

def session_preparation(self) -> None:
"""FastIron requires to be enable mode to disable paging."""
self._test_channel_read()
Expand Down

0 comments on commit 003e0f3

Please sign in to comment.