Shortnote

sshpt can be used to issue commands to a list of hosts over ssh. The advantage by contrast to other tools is that it allows to specify alternate ports and has an easy set-up.

sshpt requires that a host list is set-up, for example:

nova.vibe.info
globalhealth.vibe.info
biome.vibe.info
genome.vibe.info
repo.vibe.info
toothfairy.vibe.info
vibe.vibe.info

can be written to a file /etc/vibe_hostlist.txt.

Script

The following script is then used to send commands to all the hosts in /etc/vibe-hostlist.txt:

vibecmd
#!/bin/bash
CMD=$@
/usr/local/bin/sshpt.py -u opensim -P fbaaf25cd -p 5000 -f /etc/vibe_hostlist.txt "$CMD"

where:

  • opensim is the user to connect to via ssh.
  • fbaaf25cd is the password.
  • 5000 is the port number

Then by running:

vibecmd uptime

we get the output of uptime from all the hosts in the hosts list.


unix/sshpt.txt ยท Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.