clusterssh
clusterssh copied to clipboard
sshpass integration
I'm failing to understand the manual I'm afraid, but how do I use sshpass to connect to a bunch of servers where I have passwords, but no ssh keys. I THOUGHT it would be by setting "comms =
rs hostname
It finds the password in a table and executes: sshpass -p password user@hostname
The script works fine, but I can't figure out how to get clusterssh to use it?
You could wrapper the ssh command itself, so you have total control over its actions, separate to CSSH. I do this for hostname alias and domain expansion and user account name lookup. My script is call 'r' and this is my notes on using 'r' instead of 'ssh' in 'cssh'
# cssh
# In ".clusterssh/config"
# ssh=r
# ssh_args= -x -o ConnectTimeout=10