Static ReadonlyAttributesAttributes result type.
Static ReadonlyHostServer host public key type.
Static ReadonlyListingDirectory listing result type.
Static ReadonlyPathPath result type.
Static ReadonlyResultBasic result type.
Destroy the SSH connection immediately and wake pending operations.
Establish an SSH handshake on port 22 by default; then call login to authenticate. Host trust is not verified automatically; applications can verify the host fingerprint via getSessionInfo before logging in.
serverporttimeoutCreate a remote directory with default Unix permissions of 0o755.
pathpermissionstimeoutDelete an empty remote directory.
pathtimeoutDelete a remote file or symbolic link.
pathtimeoutClose the session immediately and return success; timeout is used only for argument validation.
timeoutDownload chunks from byte offset offset, awaiting callback sequentially; the maximum offset is 2^53-1.
pathcallbackoffsettimeoutQuery remote attributes; followLinks follows symbolic links by default, while false queries the link itself.
pathfollowLinkstimeoutRead directory entries and their attributes asynchronously.
pathtimeoutReturn a snapshot of the host public key and negotiated algorithms, or undefined if handshake information is not ready.
Query the server's default working directory for the current session.
timeoutAuthenticate asynchronously with a username and password, then open an SFTP channel.
namepasswordtimeoutOptionalAuthenticate asynchronously with matching public/private keys and an optional private-key passphrase; key arguments are contents, not paths.
namepublicKeyprivateKeypassphraseOptionaltimeoutOptionalRename a remote path; overwrite true requires server support for the OpenSSH overwrite-rename extension.
oldPathnewPathoverwritetimeoutAsk the server to resolve a canonical absolute path.
pathtimeoutUpload a file using callback-provided chunks, awaiting each chunk's write.
pathRemote file path.
callbackCallback that fills the buffer and sets size.
permissionsPermissions for new files; defaults to 0o644.
truncateWhether to clear an existing file; defaults to true.
appendWhether to request append writes; defaults to false.
offsetStarting byte offset; defaults to 0n, maximum 2^53-1.
timeoutNo-progress timeout configuration; no timeout by default.
Asynchronous SFTP client based on ssh2; file operations run in call order.