Eljay
Mar 07, 2023Cirrus
Python code using Parallel-SSH library to connect to F5 BigIP
Hi,
I'm trying to use Parallel-SSH (Python library) to connect to F5 BigIP.
s = SSHClient(<host>,user=<username>, password=<password>, timeout=5, num_retries=1)
res = s.run_command("uname")
for line in res.stdout:
print(line)
This simple code works perfectly toward a Red Hat server, but it fails toward F5 BigIP:
Here is the error message:
pssh.exceptions.AuthenticationError: ('Authentication error while connecting to %s:%s - %s - retries %s/%s', '<IP address>, 22, AuthenticationError(), 1, 1)
Has anyone gotten this to work with the Parallel-SSH library?
I have already tested Paramiko and that works, but I want to use Parallel-SSH.
This simple code works perfectly toward a Red Hat server, but it fails toward F5 BigIP:
Here is the error message:
pssh.exceptions.AuthenticationError: ('Authentication error while connecting to %s:%s - %s - retries %s/%s', '<IP address>, 22, AuthenticationError(), 1, 1)
Has anyone gotten this to work with the Parallel-SSH library?
I have already tested Paramiko and that works, but I want to use Parallel-SSH.