> For the complete documentation index, see [llms.txt](https://oddlama.gitbook.io/fora/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oddlama.gitbook.io/fora/api/fora/connectors/local.md).

# connectors.local

Contains a connector which handles connections to hosts via SSH.

## <mark style="color:red;">class</mark> `local.LocalConnector`

A tunnel connector that provides remote access to the current local machine via a subprocess.

### <mark style="color:yellow;">def</mark> `LocalConnector.command()`

```python
def LocalConnector.command(self) -> list[str]:
```

Constructs the full command needed to execute a tunnel dispatcher on this machine.

#### Returns

* **list\[str]**: The required ssh command.

### <mark style="color:yellow;">def</mark> `LocalConnector.extract_hostname()`

```python
def LocalConnector.extract_hostname(cls, url: str) -> str:
```
