Skip to content

SFTP Drive

FieldDescriptionDefault
HostSSH/SFTP hostname or IP addressRequired
PortSSH port22
UsernameSSH userRequired
PasswordPassword authentication; use either this or a private keyEmpty
Private keyPEM/OpenSSH private-key contentsEmpty
Host public keyPinned host key in SSH authorized-key formatEmpty
Root pathRemote absolute path to map/
Cache TTLDirectory-entry cache time; zero or below disables cachingDisabled

In production, set Host public key to prevent man-in-the-middle attacks. You can use ssh-keyscan on a trusted network to obtain a candidate value, but verify its fingerprint through another trusted channel before saving it.

The root path must begin with /. File contents pass through go-drive. Move and rename use remote operations, while copy is handled by the generic go-drive job, which reads and uploads the file again.

Released under the MIT License.