Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 netmiko connecting to arista devices.
#1
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
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.
Quote

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)