> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# SSH

> Access a remote directory as workspace files over SFTP.

SSH mounts a directory from a remote server. You need an SSH account with
access to that directory and an SFTP-enabled server. Available in Python
and Node.

## Configuration

Set the server, username, key and remote directory:

```yaml theme={null}
mounts:
  /remote:
    vfs: ssh
    mode: read
    config:
      host: server.example.com
      username: deploy
      identity_file: ~/.ssh/id_ed25519
      root: /srv/data
```

`ls /remote` lists the remote directory. Set `mode: write` to allow changes,
subject to the SSH account's permissions.

`private_key` takes the key's own text in place of `identity_file`'s path, so
a [credential pointer](https://docs.mirage.strukto.ai/home/service-credentials.md#pointer-fields) can read it from a
secret store.

To run programs on the server, use the [SSH runtime](https://docs.mirage.strukto.ai/home/setup/machine/ssh.md).

## SDK guides

* [Python SSH VFS](https://docs.mirage.strukto.ai/python/vfs/ssh.md)
* [TypeScript SSH setup](https://docs.mirage.strukto.ai/typescript/setup/ssh.md)


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