Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 netmiko connecting to arista devices.
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
Bad authentication type; allowed types: ['publickey', 'keyboard-interactive']

My code:
from netmiko import ConnectHandler

iosv_l2 = {
    'device_type': 'arista_eos',
    'ip': '',
    '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 file, but do not want to modify anything until I know what the issue is.

Thank you

Larz60+ wrote Feb-08-2020, 02:29 AM:
Please post all code, output and errors (in it's entirety) between their respective tags. I did it for you this time, Here are instructions on how to do it yourself next time.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Python script for show commands-CISCO Devices babbarsher 1 5,893 Dec-13-2017, 11:44 PM
Last Post: Larz60+

Forum Jump:

Users browsing this thread: 1 Guest(s)