Skip to content

Type Alias: Protocol ​

ts
type Protocol = "auto" | "sftp" | "scp";

Which wire protocol to use for transfers.

  • sftp: SFTP subsystem only. Fails with ERR_SFTP_UNAVAILABLE when the server has none.
  • scp: the classic SCP protocol over an exec channel (scp -t / scp -f).
  • auto (default): SFTP when available, otherwise SCP.

Released under the MIT License.