vfs.toml
Virtual filesystem config enables browsing remote machines via SFTP.
SFTP Registration
[sftp.my-server]
host = "192.168.1.100"
port = 22
username = "user"
key = "~/.ssh/id_ed25519"
auth = "key"
| Key | Type | Default | Description |
|---|---|---|---|
host | string | — | Remote hostname or IP |
port | int | 22 | SSH port |
username | string | — | SSH user |
key | string | — | Path to private key |
auth | string | "key" | Authentication method ("key" or "agent") |
Accessing Remote Hosts
yazi sftp://my-server
Using VFS in Keymap
Define a keybinding to connect to a remote server:
[[mgr]]
prepend_keymap = [
{ on = "<C-s>", run = "shell 'yazi sftp://my-server'", desc = "Connect to my-server" },
]