Questions tagged [parallel-ssh]

19 questions
1
vote
1 answer

ModuleNotFoundError: No module named 'pssh'

I am using python3.9 and I got the following error: ModuleNotFoundError: No module named 'pssh' on trying to use the library as follows: - from pssh.clients import ParallelSSHClient. I tried installing pssh as follows: - pip install pssh (inside a…
Prabhatika Vij
  • 305
  • 3
  • 15
1
vote
1 answer

How to connect to multiple servers through ssh with different hosts & passwords in python?

How to connect to multiple servers through ssh with different hosts & passwords in python? I've tried to use Parallel-ssh. But I was unable to connect to multiple servers that had a different password. Example from there documentation for a single…
poop
  • 49
  • 6
1
vote
0 answers

Issues using pssh -I option in bash script

I'm trying to use the -I option of pssh (parallel ssh) in a bash script and am having difficulties. This option should allow you to execute a script on your local machine on a remote machine. I've tried doing a very simple one for testing but…
1
vote
1 answer

parallel ssh (pssh) with output stream

I have 3 servers and I want to run a command on all of them parallely from a client and see the output as it streams. I have tried using pssh but it shows output only when the command exits. But what I want is the output from all the servers on the…
MeV
  • 11
  • 4
0
votes
0 answers

Can't find input file libssh2.lib using pip install parallel-ssh

I'm trying to install a python package on Windows 10 and am getting the following output from the command line. Error is being thrown while building the wheel for the dependency ssh2-python Building wheel for ssh2-python (setup.py) ... error …
0
votes
0 answers

Python package install parallel-ssh for Windows 10

I am new to Python and trying to get this package to download and install. From what I am reading the PIP installs the package to my PC and then complies into an executable binary in the…
0
votes
1 answer

How to list directory files in SFTP using parallel-ssh?

I have the following code which successfully connects to an SFTP server and copies a file from remote to local. But how can I list directory contents? Running the command 'ls' fails import pssh.clients, pssh.utils …
0
votes
0 answers

Failing to pip install parallel-ssh on Macos Monterey

I am trying to install parallel-ssh (pip install parallel-ssh) on MacOs Monterey but failing with the following error. I also tried to install parallel-ssh through Pycharm and failed. Does anyone have any idea on how to resolve this? Building…
PloniStacker
  • 574
  • 4
  • 23
0
votes
0 answers

Pyhon Parallel-Ssh Sending Commands In Loop In a Single Shell Does Not Work

I have been trying to send a single command in a loop for a single client in a single shell because different commands need to go before the loop to get into a terminal using Parallel-ssh. Code: pclient = ParallelSSHClient(['ipaddress'],…
0
votes
1 answer

Python Parallel SSH - Netmiko/Napalm - Cisco SMB switches stuck at sending command

I am trying to determine vendor + version (using python NAPALM and parallel-ssh) of network switches (Huawei VRP5/8, Cisco Catalyst and Cisco SMB (SF/SG): admin@server:~$ python3 Python 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0] on…
sweedcorn
  • 1
  • 2
0
votes
1 answer

Python Parallel SSH - How to pass multiple username and password

I am trying to do parallel SSH using ParallelSSHClient. When I run as hosts = ['x.x.x.x', 'y.y.y.y'] ParallelSSHClient (hosts, 'user', 'pass') It is working fine. But what if the username and password varies for x.x.x.x and y.y.y.y? I have to pass…
0
votes
1 answer

Python: send ssh command to multiple servers with parallel-ssh, get total failure if one of them is unavailable

I use this way: servers = ["192.168.100.161", "192.168.100.162", "192.168.100.163"] top_command = "top -b -n 1" host_config = make_host_config(servers) client = ParallelSSHClient(servers, timeout=2, num_retries=1, retry_delay=1,…
0
votes
0 answers

Python - Telnet or SSH multiple devices

I am currently using telnetlib and paramiko to connect to a server and gather some configuration from it. It took around 30 minutes to gather configuration of 50 servers. But now I need to connect around 50k servers. So by this method this is going…
Chandru Jc
  • 105
  • 10
0
votes
0 answers

How to type the credentials manually in Parallel-SSH or Paramiko

I am trying to create a script that will run commands over my 1000 Cisco devices. The device model is: Cisco Sx220 Series Switch Software, Version 1.1.4.1 The issue is that there is some kind of strange behavior for some of those Cisco devices. When…
Yaniv
  • 79
  • 7
0
votes
0 answers

ParallelSSHClient() with IPv6

What's the correct way to specify IPv6 addresses to ParallelSSHClient? Not much is said here: https://parallel-ssh.readthedocs.io/en/latest/quickstart.html I've tried like [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx] and also without the square…
Darien Pardinas
  • 5,910
  • 1
  • 41
  • 48
1
2