Linux server
A server connects over plain SSH with one command. We keep no keys: for each connection we sign a certificate of its own, which lives two minutes and is good for this server alone.
Connect it
Section titled “Connect it”-
In tTerm Web, open Add a machine and choose Server.
-
Copy the command and run it on the server, as root or as any user with sudo:
On the server curl -sSL https://connect.tterm.net/s/<token> | sudo sh -
The server appears in the project as soon as the script finishes, usually within a minute. The cloud signs in to it on its own, checks it and reads what the machine is: its system, address and shell.
What the script does
Section titled “What the script does”- Creates the user
tterm, with no password. If our Telegram bot already made it, it is reused. - Lets the cloud sign in as
ttermwith certificates that live two minutes and are made for this server alone. No keys stay on the server. - Gives
ttermsudo, so you can manage the server. One command takes it back. - Never touches
sshd_configand opens no ports. Running it twice is safe.
The trust is one line in the authorized_keys of the user tterm, and every server has a line of its own:
cert-authority,principals="m-…" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5… tterm-web ca-…Remove a server
Section titled “Remove a server”On the project’s page, press ⋯ next to the server and choose Remove machine. The cloud stops signing in to it and takes its access back on the server itself. If the server does not answer, the command for that comes next.
How to remove everything else the installer put in is written at the top of the script itself.