[GH-ISSUE #201] Question on the clush command #51

Closed
opened 2026-05-07 00:18:08 +02:00 by BreizhHardware · 2 comments

Originally created by @ghost on GitHub (Jun 17, 2021).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/201

I want to run a number of commands on remote machines through the bastion and understand I should be using the clush plugin for that.

When I run the plugin and provide a list of ip addresses of hosts I have access to (double checked with selfListAccesses), it is trying to use my username instead of the one defined for that host when adding it to the bastion. I find no way however to provide the username to be used on the remote machines as part of the clush plugin.

What am I missing?

Originally created by @ghost on GitHub (Jun 17, 2021). Original GitHub issue: https://github.com/ovh/the-bastion/issues/201 I want to run a number of commands on remote machines through the bastion and understand I should be using the _clush_ plugin for that. When I run the plugin and provide a list of ip addresses of hosts I have access to (double checked with selfListAccesses), it is trying to use my username instead of the one defined for that host when adding it to the bastion. I find no way however to provide the username to be used on the remote machines as part of the _clush_ plugin. What am I missing?
BreizhHardware 2026-05-07 00:18:08 +02:00
Author
Owner

@speed47 commented on GitHub (Jun 21, 2021):

Hello,

This is missing from the --help of this plugin, but you can use --user and --port to specify a user (otherwise, defaults to your account name as you noticed), and the port (otherwise defaults to 22).

There is currrently no way to specify a different user/port for each host of the list, but this is an easy-to-add feature if needed.

<!-- gh-comment-id:864883432 --> @speed47 commented on GitHub (Jun 21, 2021): Hello, This is missing from the `--help` of this plugin, but you can use `--user` and `--port` to specify a user (otherwise, defaults to your account name as you noticed), and the port (otherwise defaults to 22). There is currrently no way to specify a different user/port for each host of the list, but this is an easy-to-add feature if needed.
Author
Owner

@speed47 commented on GitHub (Jun 21, 2021):

Side note: if you happen to use clush (i.e. the actual clush program), you can configure it to use the bastion when connecting to the remote servers, by setting the ssh_path of your clush config to the bastion alias.

I'll document it in the FAQ.

<!-- gh-comment-id:864932584 --> @speed47 commented on GitHub (Jun 21, 2021): Side note: if you happen to use `clush` (i.e. the actual [clush](https://clustershell.readthedocs.io/en/latest/tools/clush.html#clush-tool) program), you can configure it to use the bastion when connecting to the remote servers, by setting the `ssh_path` of your clush config to the bastion alias. I'll document it in the FAQ.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#51
No description provided.