Skip to content

Allow named SSH routes to the same running core - #537

Open
kozhukovv wants to merge 5 commits into
herdrdev:masterfrom
kozhukovv:docs/ssh-endpoint-failover
Open

kozhukovv wants to merge 5 commits into
herdrdev:masterfrom
kozhukovv:docs/ssh-endpoint-failover

Conversation

@kozhukovv

@kozhukovv kozhukovv commented Dec 4, 2026 •

Copy link
Copy Markdown

Closes #536

Register a second SSH address for a laptop with the existing CLI and select the address by name.

hc machine add me@192.0.2.20 --name laptop-lan
hc machine add me@198.51.100.20 --name laptop-vpn
hc run --on laptop-vpn --bg 'sleep 60'

Each SSH target has its own connection, status and terminal address prefix. Both names reach the same remote terminals. A per-process value in hello distinguishes two addresses of the same running core from two machines with a copied core ID. To register the second route after a remote restart, the first route must have seen the current process. Older cores can still be registered once.

Added CLI coverage for two names, access to the same terminal, removing one route, restarting the client core and rejecting a separate process with a copied identity. Local checks covered formatting and diff hygiene. A physical LAN/VPN test is pending.

@kozhukovv kozhukovv changed the title docs: connect to one core over LAN or VPN through SSH Allow named SSH routes to the same running core Dec 5, 2026
@kozhukovv
kozhukovv marked this pull request as ready for review December 5, 2026 09:58

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow two named SSH routes to the same remote core

1 participant