Python Forum
netmiko connecting to arista devices. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: netmiko connecting to arista devices. (/thread-24299.html)



netmiko connecting to arista devices. - dan1962 - Feb-07-2020

Creating a Python script that will log into a Arista Switch, from there it will save config, then tftp to a tftp server and copy the running-config.

Issue that I am having is that it will not connect to the Arista Device.
Getting this error:
netmiko.ssh_exception.NetmikoAuthenticationException: Authentication failure: unable to connect arista_eos 192.168.225.254:22
Bad authentication type; allowed types: ['publickey', 'keyboard-interactive']

My code:
from netmiko import ConnectHandler

iosv_l2 = {
    'device_type': 'arista_eos',
    'ip': '192.168.225.254',
    'username': 'test123',
    'password': 'test123'
}
Not using keys yet, and can log onto the device with username and password from a command prompt or 'Putty'
I looked over the base_connection.py file, but do not want to modify anything until I know what the issue is.

Thank you

Dan