Skip to content

sshpass

For dsh

export SSHPASS=$(gopass show example.com/my_account_name)
#
dsh -c -M -F 20 -f ./server-list -r 'sshpass' -o '-e' -o 'ssh'  'sudo cat /proc/loadavg' 

sudo rootsh

export SSHPASS=$(gopass show example.com/my_account_name)
#
dsh -c -M -F 20 -f ./server-list -r 'sshpass' -o '-e' -o 'ssh' -o '-tt' -o '-q'  "sudo rootsh -- 'uname -r; whoami'"

ssh