Skip to main content
SSHVFS opens an SFTP session and mounts the remote root as a filesystem.
Node only. Requires the ssh2 peer dependency. The browser SDK doesn’t ship an SSH client.

Install

Config

Fields marked secret are redacted in snapshots.

Mount mode

read, write, exec. Writes flush via SFTP put. Use MountMode.EXEC if python3 or js should run scripts from the mount. For the full set of supported shell commands see the Python SSH docs.

VFS.md

The VFS.md an agent reads with SSH mounted at /<path>.

Virtual Filesystem

Supported Unix Commands for VFS

Unix commands work on each path as on a local filesystem, as far as the path supports them:

Limitations of Unix Commands for VFS

Where a path differs from a local filesystem:Run man <cmd> or <cmd> --help for one command’s usage.

Integration

What SSH answers through its own API, so fewer files are read. Integration explains each command. The Python SSH docs list when each search answers and what it can miss.