Ssh
Source:
src/Hetzner/Ssh.ts
SSH exec/scp against a Hetzner Server. Uses the Server’s Alchemy-managed
deploy key (injected at create) unless privateKey is passed.
Remote access
Section titled “Remote access”Exec a command
const ssh = yield* Hetzner.Ssh(server);const { stdout } = yield* ssh.exec("uname -a");Copy a file
const ssh = yield* Hetzner.Ssh(server);yield* ssh.scp("/tmp/app.zip", "/opt/app/bundle.zip");