7.6.212-stable Switch to dev

ssh > ssh

Source

Authentication

Two authentication methods are supported:

Password Authentication

let auth = SshPasswordAuth {
    username: "myuser",
    password: "mypassword"
};
let auth = SshKeyAuth {
    username: "myuser",
    pubkey: "/home/user/.ssh/id_ed25519.pub",
    privkey: "/home/user/.ssh/id_ed25519",
    passphrase: null  // or provide passphrase if key is encrypted
};

For automated systems, use unencrypted keys with restricted file permissions (chmod 600) instead of password-protected keys.

File Metadata

Remote file information is represented by FileStat, which provides optional fields for size, permissions, ownership, and timestamps. Not all fields are guaranteed to be populated depending on the server and operation.

File Types

The FileType enum distinguishes between different file types on remote systems: regular files, directories, symlinks, device files, sockets, named pipes, and other special files.