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

# Jump Hosts

> Hoop could act as a bastion server allowing the execution of one-off sessions.

## Prerequisites

To get the most out of this guide, you will need to:

* Either [create an account in our managed instance](https://use.hoop.dev) or [deploy your own hoop.dev instance](/getting-started/installation/overview)
* You must be your account administrator to perform the following commands

## Connection Configuration

Any agent connected in the gateway could act as bastion host. You could choose which command to expose.

### Expose Bash Shell

```sh
hoop admin create conn jump-host-bash -a <agent-name> -- /bin/bash
```

### Expose Python Shell

```sh
hoop admin create conn jump-host-python -a <agent-name> -- python3
```

## How to Use

Start an interactive session.

```sh
# bash interactive session
hoop connect jump-host-bash
```

In the same connection, one-off processes can be run as well.

```sh
hoop exec jump-host-bash <<EOF
echo "one-off execution" && env
EOF

hoop exec jump-host-python -i 'import os; print(os.environ)'
```
