Skip to content

Password authentication fails with Arista vEos #105

Description

@ganeshrn
SUMMARY
ISSUE TYPE
  • Bug Report
PYLISSH and LIBSSH VERSION
devel
OS / ENVIRONMENT
STEPS TO REPRODUCE

clone repo and build the binaries
Refer: https://github.com/ansible/pylibssh#building-the-module

Add binary file PYTHONPATH

$ export PYTHONPATH="${PYTHONPATH}:<path-to-cloned-repo>/src"

Run below python script

import os

from pylibsshext.session import Session
from pylibsshext.errors import LibsshSessionException

ssh = Session()

HOST = "<changeme>"
USER = "<changeme>"
PASSWORD = BECOME_PASSWORD = "<changeme>"


try:
    ssh.connect(
        host=HOST,
        user=USER,
        password=PASSWORD,
        timeout=30,
        port=22,
        look_for_keys=False
    )
except LibsshSessionException as ex:
    print(str(ex))

print(ssh.is_connected)
EXPECTED RESULTS

Password authentication should work

ACTUAL RESULTS
Password authentication fails

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions