> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/hypersim/model-and-simulation/cybersecurity-with-exata-cps/get-started-with-exata-cps/configure-remote-execution.md).

# Configure Remote Execution

Before running an EXata CPS simulation for the first time, configure remote execution between the workstation and the OPAL-RT simulator. This setup enables passwordless SSH communication, allowing EXata CPS to launch simulations remotely from the EXata CPS GUI.

{% stepper %}
{% step %}

### Install Cygwin and OpenSSH

1. Download `setup-x86_64.exe` from the [Cygwin website](https://cygwin.com/).
2. Run the installer and select **Install from Internet**. Keep the default settings and choose any download mirror.
3. In the **Select Packages** window:
   * Change the view to **Category**.
   * Search for `openssh`.
   * Select the `openssh` package and check the source package (`Src?`) option.
   * It is recommended to use the latest available `p1-1` version.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-cba00411e9a6218c6e48844a73b0675f1ba8e017%2Fexata-cygwin-setup.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Complete the installation.
   {% endstep %}

{% step %}

### Configure passwordless access to the simulator

The following steps configure SSH keys so that EXata CPS running on the workstation can connect to the simulator without prompting for credentials each time a simulation is launched.

1. Power ON the simulator and ensure it is connected to the workstation as described in [Configure Workstation & Simulator Link](https://www.opal-rt.com/docs/hypersim/get-started/configure-workstation-and-simulator-link.md).
2. On the workstation, open a **Cygwin** terminal with administrator privileges.
3. Type the following command to navigate to the EXata CPS installation directory:

   `cd "/cygdrive/c/Program Files/Scalable/exata-cps/<version>/bin"`

   **Example:**

   `cd "/cygdrive/c/Program Files/Scalable/exata-cps/8.1.3.0/bin"`
4. Type the following command to make the required scripts executable:

   `chmod +x exata.remote.sh`
5. Type the following command to run the setup script:

   `./setupRemoteExec.sh root@<simulator IP address>`

   **Example:**

   `./setupRemoteExec.sh root@192.168.5.36`
6. When prompted, enter the simulator's `root` password. The password is provided in the **System Description Document** supplied with the simulator.

{% hint style="info" %}
The following message can safely be ignored: `mkdir: cannot create directory '/home/root/.ssh': File exists`. It simply indicates that the `.ssh` directory already exists on the simulator.
{% endhint %}

6. Type the following command to verify that the configuration was successful:\
   `ssh root@<simulator IP address>`\
   **Example:**\
   `ssh root@192.168.5.36`

The simulator should open a session without prompting for the `root` password.
{% endstep %}

{% step %}

### Configure remote execution in EXata CPS

1. Open the EXata CPS GUI.
2. Select **Run Settings**.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-6acde8093dfc90ee6abf5de1ee86ed97474ab8a0%2Fexata-run-settings.png?alt=media" alt="" width="155"><figcaption></figcaption></figure>

3. Under **Remote Execution**, verify the following settings:

* **Number of Partitions**: Default value of `1`. EXata CPS automatically reserves the required CPU resources.
* **Login\@Host**: `root@<simulator IP address>`
* **Remote EXATA\_HOME**: `/opt/Scalable/exata-cps/<version>/`

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-59f557e5dadbab57aea22c099cc4a7d134468047%2Fexata-remote-settings.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Click **OK**.

The workstation is now configured to launch EXata CPS simulations on the OPAL-RT simulator.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/hypersim/model-and-simulation/cybersecurity-with-exata-cps/get-started-with-exata-cps/configure-remote-execution.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
