Article · 2 min read · Getting started
kubespin: Add a server with a code
Works for a cloud server, a VM or a PC at home. The machine connects out to kubespin, so you don’t need port forwarding, dynamic DNS or a VPN, and you never type an SSH password into kubespin.
Works for a cloud server, a VM or a PC at home. The machine connects out to kubespin, so you don’t need port forwarding, dynamic DNS or a VPN, and you never type an SSH password into kubespin.
On the machine
-
Download the
kubespincommand:bashcurl -fsSL https://kubespin.io/api/v1/cli/install | sh -
Register:
bashsudo ./kubespin registerTo give the server a name, add it after
register, for examplesudo ./kubespin register my-debian-pc. Without one, the machine’s hostname is used. -
It prints a code like
KQ7M-4XPD. The code works once, for 15 minutes.
The command is built for amd64 and arm64.
In kubespin
- Go to Servers and choose Add Server.
- Choose Enter a code.
- Type the code. kubespin shows the machine’s name, system, architecture and address, so you can check it’s the right one before anything happens.
- Change Name in kubespin if you like, then choose Add this server.
The machine then sets itself up: Docker and the SSH server if they’re missing (from Debian’s or Ubuntu’s own packages), a kubespin user, and the agent. Onboarding starts as soon as the agent connects, and you can follow it on the server’s page.
If it goes wrong
- “That code wasn’t found.” The code has expired or was already used. Run
sudo ./kubespin registeragain for a new one. - The machine stops answering later: see kubespin: Add a home server for Reconnect this computer.