pydsh --user=root -n apt_hosts apt-get clean
pydsh --user=root -n apt_hosts apt-get update
pydsh --user=root -n apt_hosts apt-get -d upgrade
for host in $(cat /usr/local/etc/pydsh/groups/apt_hosts)
do
echo -e "\nAPT Session for $host"
ssh root@$host apt-get upgrade
done
pydsh --user=root -n apt_hosts apt-get clean
pydsh --ssh_pubkey=gen --ssh_keytype=dsa
or
pydsh --ssh_pubkey=gen --ssh_keytype=rsa
Note: if ssh_keytype is not specified, then DSA will be used.
pydsh -n Node01-2 --ssh_pubkey=install
pydsh -a --ssh_pubkey=revoke