Setup
The server needs SFTP turned on and an SSH account with access to the directory. Create a key and install it on the server, then check that SFTP answers:private_keytakes the key’s own text in place ofidentity_file’s path, so a credential pointer can read it from a secret store.- Without
identity_fileorprivate_key, the SSH agent and the default keys in~/.sshare tried. Withidentity_fileand its public key beside it (<path>.pub), the agent offers only that key, as OpenSSH’sIdentitiesOnlydoes, so other keys in the agent cannot use up the server’s login attempts. Withprivate_keyset, the SSH agent is not tried, nor, in Python, Kerberos.passwordworks too, but a key is preferred.
Connect
- YAML
- Python
- TypeScript
workspace.yaml
Layout
/remote/logs/app.logis/srv/data/logs/app.logon the server.- In Python,
hostalso matches a~/.ssh/configalias, and its settings apply;ssh_config: falseleaves the file unread. - Host keys are checked only with
known_hostsset, against the keys thatknown_hostsfile lists for the server; an unknown or changed key refuses the connection.ssh-keyscan -p <port> <host> >> <file>adds a server’s keys to a file; it trusts whatever key answers, so run it over a network you trust or compare the fingerprint withssh-keygen -lfon the server.
Sample runs
mode: write allows changes, as far as the SSH account’s permissions allow.
To run programs on the server, use the SSH machine.
SDK guides
Python
Every config field, the VFS.md and write support.
TypeScript
Every config field, the VFS.md and write support.