Skip to main content

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"
KeyTypeDefaultDescription
hoststringRemote hostname or IP
portint22SSH port
usernamestringSSH user
keystringPath to private key
authstring"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" },
]