Closed leonkramer closed 1 year ago
In the case of Junos legacy support device, Kindly use paramiko 1.15.2 version.
Hi @leonkramer Thanks, Please try the suggested option by Dinesh . In the case of Junos legacy support device, Kindly use paramiko 1.15.2 version.
Thanks
Issue Type
Module Name
OS / Environment
Juniper EX3300 @ 15.1R7-S7.1
Summary
Ansible SSH connection fails with Authentication Error, even though normal SSH connection in terminal works flawless.
Steps to reproduce
Install paramiko with version >= 2.9 and run ansible playbook on older Junos versions
Expected results
SSH connection should work
Actual results
Switch Message Log:
More Info
The issue is related to paramiko and discussed at https://github.com/paramiko/paramiko/issues/1961. Apparently paramiko chooses a preferred algorithm if it does not receive a "server-sig-algs" from the server. That preferred algorithm is rsa-sha2-512 which is not supported by older Junos versions.