mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[GH-ISSUE #201] Question on the clush command #51
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@speed47 commented on GitHub (Jun 21, 2021):
Hello,
This is missing from the
--helpof this plugin, but you can use--userand--portto 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.
@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 thessh_pathof your clush config to the bastion alias.I'll document it in the FAQ.