ssh connects to a previously created ephemeral environment. It establishes a
ssh connection to the target environment, over Namespace’s networking, in a
way that end-to-end encryption is retained, but the target host is not exposed
directly to the Internet.
To enable experimentation, ssh also has a “quick create” mode built-in,
allowing you to quickly create a named environment (a sandbox), or get back to a
previously created sandbox.
This allows you to jump into a container-enabled terminal in a few seconds.
Usage
Example
1
Create an ephemeral instance
Create an ephemeral instance and note its ID:
Output
2
Connect to the instance
Connect to the instance using its ID:
Output
3
Select an instance interactively
Omit the instance ID to select from a list of your instances:
Output
4
Run a remote command
Run a command directly in the instance through
nsc ssh:Output
Options
—container_name <name>
Connects to the container namedname in the environment, instead of the
instance environment itself.
On a GitHub Actions runner instance, use --container_name github-runner to
connect to the runner container while it is handling a job.