Python Forum
netmiko connecting to arista devices.
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  netmiko: print out specific line matches with 'Cisco IOS Software' in sh ver output sabrina 1 3,359 Nov-28-2022, 10:05 AM
Last Post: carstenlp
  Netmiko Program ssh from the Jumpssh ( host -> Jumphost -> Network Device matya0403 3 6,769 Jul-31-2020, 08:22 AM
Last Post: dtw
  [Socket] Can a server be accessible from devices not in the same network? SheeppOSU 2 2,934 Jun-18-2020, 01:29 PM
Last Post: DeaD_EyE
  Connect to device without paramiko/netmiko modules kang18 3 3,000 Jun-05-2020, 10:54 AM
Last Post: Larz60+
  Netmiko timing out after sending command c7borg 0 9,407 Mar-25-2020, 04:53 PM
Last Post: c7borg
  Python script for show commands-CISCO Devices babbarsher 1 12,922 Dec-13-2017, 11:44 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020