node-scp
Copy files to and from SSH servers over SFTP or SCP.
ts
import { connect } from 'node-scp';
await using client = await connect({ host: 'example.com', username: 'deploy', privateKey });
await client.upload('./dist', '/var/www/app', { recursive: true });Modules
Classes
Interfaces
- ConnectOptions
- EntryInfo
- MkdirOptions
- ReadFileOptions
- RemoteEntry
- RemoteStats
- RemoteTarget
- RmOptions
- ScpErrorOptions
- TransferOptions
- TransferProgress
- TransferResult
- WriteFileOptions