Self-host the VHS SSH server
mainVHS includes a built-in SSH server. When self-hosted, you can access the server as if VHS were installed locally, allowing you to run commands and applications hosted on that server to generate GIFs remotely.
- Start the server:
vhs serve - Access from a remote machine:
ssh vhs.example.com < demo.tape > demo.gif
Server Configuration Environment Variables
| Variable | Description |
|---|---|
VHS_PORT | The port to listen on (default: 1976) |
VHS_HOST | The host to listen on (default: localhost) |
VHS_GID | The Group ID to run the server as (current user's GID) |
VHS_UID | The User ID to run the server as (current user's UID) |
VHS_KEY_PATH | The path to the SSH key to use (default: .ssh/vhs_ed25519) |
VHS_AUTHORIZED_KEYS_PATH | The path to the authorized keys file (empty, publicly accessible) |
vhs serve