Hello,
Thank you for contacting us on this matter!
For your use case, I recommend configuring your SSH entries to open with a playlist. Once the playlist runs and all sessions open, go to the Actions tab and enable "Broadcast all". This ensures that everything you type in the first session is automatically sent to all the others.
Next, you can run your script using the "Execute command from palette" feature. To add one, click the "+" icon to add your script, then search for and execute it. The command will then run across all your sessions simultaneously.
Here's the exact steps for the configuration:
Create a Playlist for your SSH entries
https://docs.devolutions.net/rdm/commands/edit/play-list/play-list-actions/
Run the playlist to open all your SSH entries.
Select the Actions tab and click "Broadcast all"
https://docs.devolutions.net/rdm/kb/how-to-articles/broadcast-actions-in-ssh-sessions/
Under the first SSH session, in the icons at the top, select the last option to the far right, "Execute command from palette."
https://docs.devolutions.net/rdm/kb/how-to-articles/command-palette-ssh/#access-terminal-commands-via-the-command-palette
After, in the prompt that will appear, click on the "+" and add your script under the "Run" field and press Add. (Not the path to the executable, but the whole script)
Then, in the "Execute command from palette search bar," search for the name given to the previously configured command and Double-click on it to execute it.
[image]
Please let me know if this approach fits your needs. If you have any other questions, please let us know.
Best regards,
Maxim Robert
Thanks for the reply. Didn't quite meet my needs though. I should have been more specific. The commands being sent in each SSH session are different. What I need is something that will login to one session, run some commands, log out of that session and login to another session and run some different commands. Then repeat until done. OR - is there a way to send passwords via either post login commands or after open envents, so I could just login to the bastion server, and then it goes through the script of logging into each subsequent server, doing the work and moving on to the next one?