clusterssh icon indicating copy to clipboard operation
clusterssh copied to clipboard

sshpass integration

Open da0ist opened this issue 5 years ago • 1 comments

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?

da0ist avatar Dec 09 '20 18:12 da0ist

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

antofthy avatar Jul 27 '21 01:07 antofthy