I've installed PDSH in order to manage a few servers. All of the servers are CentOS 5.

My question is, how do I specify the ssh port for individual servers when running a script via pdsh? I'm using a few group files and some of the servers use port 22 for ssh and some use other random ports for security reasons.

I tried just adding a -p <Port_Num> option to the /etc/dsh/groups/ files but that fails.


Here are my versions for the apps in question:
pdsh-2.18
openssh-4.3p2-29.el5
openssh-server-4.3p2-29.el5