Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated custom juniper paramiko #1299

Merged
merged 5 commits into from
Apr 10, 2024
Merged

Conversation

dineshbaburam91
Copy link
Collaborator

@dineshbaburam91 dineshbaburam91 commented Apr 10, 2024

  • Updated juniper paramiko which supported aes128 and aes257 cipher.
  • Fixed Python code style format running black tools

show system services
ssh {
ciphers [ [email protected] [email protected] ];
}

>>> from jnpr.junos import Device
>>> dev = Device(host='x.x.x.x', user='xxxx', password='xxxx')
>>> dev.open()
Device(x.x.x.x)
>>> dev.facts
{'2RE': False,
 'HOME': '/root',
 'RE0': {'last_reboot_reason': '0x4000:VJUNOS reboot',
         'mastership_state': 'master',
         'model': 'RE-QFX5110-48S-4C',
         'status': 'OK',
         'up_time': '384 days, 7 hours, 3 minutes, 29 seconds'},

@ydnath
Copy link
Member

ydnath commented Apr 10, 2024

Use updated paramiko (Juniper release) with additional support for aes128 and aes257 ciphers.

@ydnath ydnath merged commit 1710c82 into Juniper:master Apr 10, 2024
7 checks passed
@ipuustin
Copy link

ipuustin commented May 3, 2024

The above code snippet (and configuration) does not seem to work for me (using version 2.7.1):

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/jnpr/junos/device.py", line 1371, in open
    self._conn = netconf_ssh.connect(
                 ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ncclient/manager.py", line 187, in connect
    return connect_ssh(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ncclient/manager.py", line 139, in connect_ssh
    session.connect(*args, **kwds)
  File "/usr/lib/python3.11/site-packages/ncclient/transport/ssh.py", line 328, in connect
    raise SSHError('Negotiation failed: %s' % e)
ncclient.transport.errors.SSHError: Negotiation failed: Incompatible ssh server (no acceptable ciphers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants