ssh client script for distributed systems
bash
ssh
- *nix basic commands (
xargs
,cat
, and so on)
Place dssh.sh
to a directory which definition in PATH
environment variable.
curl -L https://raw.githubusercontent.com/negokaz/dssh.sh/main/dssh.sh \
-o /usr/local/bin/dssh.sh
chmod +x /usr/local/bin/dssh.sh
dssh.sh --ssh [email protected] --ssh [email protected] tail -F /var/log/messages
dssh.sh -f ssh.dests tail -F /var/log/messages
dssh.sh -f ssh.dests --no-label bash -c 'cat /var/log/messages | grep ERROR' | sort | less -R
cat source.txt | dssh.sh -f ssh.dests --silent tee /tmp/dest.txt
dssh.sh -f ssh.dests -o out -a messages.log --silent cat /var/log/messages
A destination file (*.dests
) is a file that contains destinations for ssh.
Destinations are separated by line feeds like this:
# This is a comment
[email protected]
[email protected] # You can place comments like a shell script
Copyright (c) 2019 Kazuki Negoro
dssh.sh is released under the MIT License