pdsh gives error "rcmd: socket: Permission denied"

Solution 1:

Found the answer. rcmd_default needs an entry:

echo "ssh" > /etc/pdsh/rcmd_default

Solution 2:

You can use PDSH_RCMD_TYPE=ssh like:

PDSH_RCMD_TYPE=ssh pdsh -w host1,host2 tail -f /var/log/apache.log

Solution 3:

On Fedora 23 to get this working I had to:

Install pdsh-rcmd-ssh which makes SSH an available rcmd module

dnf install pdsh-rcmd-ssh

Export the following variable

export PDSH_RCMD_TYPE=ssh