Projects / cssh (Concurrent SSH)

cssh (Concurrent SSH)

pssh and shmux have some customization issues, like inflexible IPs/hostnames specification, simultaneously spawning threads for all hosts (pssh), which is a problem with many hosts, or having to download/upload files with a separate command. cssh.py was written to resolve such problems. It has a fixed (configurable) length queue of active SSH threads, the ability to specify IPs/hostnames in 3 ways, configurable username, password, and SSH port per host, simultaneous download and upload of files/directories (using a built-in SCP implementation), again with configurable queue length, the ability to upload and execute a script with one switch, and many other useful options, like additional saving cmd outputs in a separate file for each machine (-d output_dir), or suppressing printing out hosts for which a given command produced no output (-b).

Tags
Licenses
Operating Systems
Implementation

Recent comments

25 Jan 2012 17:22 amcnabb

I haven't tried cssh yet, and I'm sure it's great, but I would like to point out an inaccurate comment in the project description: PSSH does not spawn threads for all hosts. It runs with a fixed number of threads (1 to 2), and the number of ssh processes to spawn concurrently is configurable with a command-line option.

PSSH has an active mailing list and issue tracker, where any discussion of feature request is always welcome. It sounds like cssh has some great features, and collaboration is always welcome.

Screenshot

Project Spotlight

OpenStack4j

A Fluent OpenStack client API for Java.

Screenshot

Project Spotlight

TurnKey TWiki Appliance

A TWiki appliance that is easy to use and lightweight.