Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshpass integration #137

Open
da0ist opened this issue Dec 9, 2020 · 1 comment
Open

sshpass integration #137

da0ist opened this issue Dec 9, 2020 · 1 comment

Comments

@da0ist
Copy link

da0ist commented Dec 9, 2020

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 = <script>" in the config file. I have a script that works like this:

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?

@antofthy
Copy link

antofthy commented Jul 27, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants