kosa8 cloud ssh-config
Print an ~/.ssh/config stanza so ssh kosa8-ID and VS Code Remote-SSH reach a sandbox
Usage#
kosa8 cloud ssh-config [ID...]
Prints Host stanzas whose ProxyCommand is kosa8 cloud ssh --stdio, so ssh, scp,
sftp, rsync and VS Code Remote-SSH reach the sandbox as host kosa8-ID, over its
authenticated terminal (no port 22 is opened). With no ID, one stanza matches every
kosa8-sbx_… host. --write puts it at the top of ~/.ssh/config, in a marked block
that a later --write replaces. Makes kosa8's SSH key (~/.kosa8/ssh) if there is none.
Options#
| Flag | Type | What it does | Default |
|---|---|---|---|
--write | bool | add the stanza to ~/.ssh/config (in a block a later --write replaces) | — |
Example#
kosa8 cloud ssh-config --write && ssh kosa8-sbx_abc kosa8 cloud ssh-config sbx_abc >> ~/.ssh/config