Skip to main content
The SSH VFS mounts a remote server’s filesystem over SFTP. It supports full read and write operations. Install the extra:

Config

Fields marked secret are redacted in snapshots. The host field matches entries in ~/.ssh/config, so existing SSH configurations are automatically picked up.

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.
The mounted tree mirrors the remote filesystem starting at root. Example with root="/var/data":

Cache

Directory listings are cached for 60 seconds by default (a configured index: uses its own ttl, and the mount’s ttl: caps it). File bytes are cached and served without a check until the mount’s ttl:; SSH does not accept read: fresh.

Example

Integration

What SSH answers through its own API, so fewer files are read. Integration explains each command. grep -r and rg run grep on the server to find which files hold the text, then read only those. The answer is exact. Every file is read when the server runs no commands (an SFTP-only account), its grep refuses an option (busybox), or it cannot read a file.

Shell Commands