> ## Documentation Index
> Fetch the complete documentation index at: https://sen-f208ff9e.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk actions

> Select several hosts to open tabs, run one command everywhere in parallel, or push files to all of them.

Bulk actions work on many hosts at once from the hosts dashboard. You can open a tab for each host, run one command on all of them, or upload files to the same path on each.

## Select hosts

**1. Turn on select mode**

On the hosts dashboard, click **Select**. Every host card gets a checkbox, and an action bar replaces the toolbar.

![The dashboard in select mode with checkboxes on the host cards and the action bar showing 0 selected](https://mintcdn.com/sen-f208ff9e/KwGOqbG40_L2ILah/images/06-dashboard/07-select-mode.png?fit=max\&auto=format\&n=KwGOqbG40_L2ILah\&q=85\&s=da67f5308de48fbd8466acb11fb74804)

Select mode, with nothing selected yet.

**2. Pick hosts**

Tick the hosts you want, or click **Select all**. **Select all** respects the search and filter you have active, so filter first to select only matching hosts. **Clear** empties the selection.

![The action bar showing 4 selected with Connect all, Run command and Push files enabled](https://mintcdn.com/sen-f208ff9e/KwGOqbG40_L2ILah/images/06-dashboard/08-select-all.png?fit=max\&auto=format\&n=KwGOqbG40_L2ILah\&q=85\&s=c49f40f7c817786d13c27e10a68f3872)

Four hosts selected. The three actions are now available.

**3. Choose an action**

Click **Connect all**, **Run command** or **Push files**. Click **Done**, or press `Esc`, to leave select mode.

> [!NOTE]
>
> **Run command** and **Push files** work over SSH. RDP and VNC hosts in the selection are skipped, and YourSSH tells you how many.

## Connect all

**Connect all** opens a tab for every selected host, whatever its protocol. Hosts that already have a connecting or connected session are skipped, and a notice tells you how many. If it would open more than five tabs, YourSSH asks **Open N tabs?** first: click **Open all** to continue.

## Run command

**Run command** runs one command on every selected host in parallel.

**1. Enter the command**

Type a command in the box, or click the `{}` button to insert a saved [snippet](https://sen-f208ff9e.mintlify.site/user-guide/snippets.md). Click **Run**.

![The Run command on 4 hosts dialog with an empty command box](https://mintcdn.com/sen-f208ff9e/KwGOqbG40_L2ILah/images/06-dashboard/09-bulk-run-empty.png?fit=max\&auto=format\&n=KwGOqbG40_L2ILah\&q=85\&s=dfee54fda0020ae5014a9dd68e917af3)

The Run command dialog.

**2. Read the results**

The **Results** tab lists each host with its status and duration. Click a row to expand its output and exit code.

![The Results tab listing four hosts with a green check and a duration each](https://mintcdn.com/sen-f208ff9e/KwGOqbG40_L2ILah/images/06-dashboard/10-bulk-run-results.png?fit=max\&auto=format\&n=KwGOqbG40_L2ILah\&q=85\&s=b12dca2e5300dc88b1722ea387b00fac)

All four hosts finished.

![A result row expanded to show the hostname output of Demo Server](https://mintcdn.com/sen-f208ff9e/KwGOqbG40_L2ILah/images/06-dashboard/10b-bulk-run-row-expanded.png?fit=max\&auto=format\&n=KwGOqbG40_L2ILah\&q=85\&s=784930653de454514b956a08126d29a5)

An expanded row shows what that host printed.

Hosts run in parallel, at most six at a time. Each host has a 30-second timeout, and a failure on one host never stops the others.

### Exit codes and the footer

The footer summarizes the run, for example `3 ok · 1 non-zero exit · 0 failed`:

* **ok**: the command ran and returned exit code 0.
* **non-zero exit**: the command ran but returned a non-zero code, or the server sent no exit status. The row shows the real code, or marks it as unknown.
* **failed**: YourSSH could not run the command, for example the host was unreachable, authentication failed or it timed out.
* **cancelled**: shown only if you cancelled hosts that had not started.

### Diff

The **Diff** tab groups hosts that printed identical output. The biggest group is the **BASELINE**. Click the flag on another group to make it the baseline instead. Click **Compare two hosts** to see two hosts' output side by side. This is a quick way to find the one server whose config differs.

![The Diff tab with a BASELINE group of two hosts and two single-host groups](https://mintcdn.com/sen-f208ff9e/KwGOqbG40_L2ILah/images/06-dashboard/11-bulk-run-diff.png?fit=max\&auto=format\&n=KwGOqbG40_L2ILah\&q=85\&s=b06f1bfd17a71f409badc105e6c7a11d)

Three distinct outputs: two hosts match the baseline.

## Push files

**Push files** uploads files or folders to the same path on every selected host.

1. Click **Add files** or **Add folder**. Each item appears as a chip with its size, and the **x** removes it.
2. Enter an absolute **Destination**, for example `/home/demo/backups`. YourSSH creates the folder if it doesn't exist.
3. Click **Push**. Each host shows its own progress.

![The Push files dialog with notes.txt and the destination /home/demo/backups](https://mintcdn.com/sen-f208ff9e/KwGOqbG40_L2ILah/images/06-dashboard/13-bulk-push-filled.png?fit=max\&auto=format\&n=KwGOqbG40_L2ILah\&q=85\&s=a336935ecd6c527e819868cae0c05265)

A file and a destination, ready to push.

> [!WARNING]
>
> Existing remote files with the same name are overwritten without asking.

## Cancel a running job

If you close a bulk dialog while work is still running, YourSSH asks **Cancel run?** (or **Cancel push?**). Choose **Keep running** (or **Keep pushing**) to carry on. For a run, **Cancel run** stops the queue, and hosts already in flight finish with their real result. For a push, **Cancel push** stops transfers in flight at the next file boundary.

## Related

* [Hosts](https://sen-f208ff9e.mintlify.site/user-guide/hosts.md) covers groups, tags and search, which make selecting easier.
* [Terminal](https://sen-f208ff9e.mintlify.site/user-guide/terminal.md) covers broadcast, for typing into several open sessions at once.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.