ktbyers / netmiko

Multi-vendor library to simplify Paramiko SSH connections to network devices
MIT License
3.63k stars 1.31k forks source link

fortinet _preferred_kex settings interfering with other devices #3463

Closed Noppes closed 2 weeks ago

Noppes commented 4 months ago

I have a program that connects to multiple devcies, which include fortinet and aruba_os. The moment I connected to a fortinet device I could no longer connect to aruba_os, with the error paramiko.ssh_exception.IncompatiblePeer: Incompatible ssh peer (no acceptable kex algorithm).

Turns out the fortinet driver is editing the paramiko Transport class. This commit fixes that by using disabled_algorithms instead.

ktbyers commented 3 months ago

Need to factor in interaction with this:

https://github.com/ktbyers/netmiko/pull/2979

Which I can probably do.

Noppes commented 2 weeks ago

Any status update?

ktbyers commented 2 weeks ago

I will try to work on this on Friday (alternative, feel free to reconcile the two items i.e. this PR and linked/referenced item).

Noppes commented 2 weeks ago

Like that?

ktbyers commented 2 weeks ago

Superseded by https://github.com/ktbyers/netmiko/pull/3530