Update readme

This commit is contained in:
Justin Oros
2026-04-19 12:52:40 -07:00
parent 4e1e9282ac
commit fe3f2c5b77

View File

@@ -35,6 +35,18 @@ cd tinyboard
./setup.sh # option 1 (configure new spoke) ./setup.sh # option 1 (configure new spoke)
``` ```
### Adding the Spoke's Public Key to the Hub
During `setup-spoke.sh`, a key pair is generated on the spoke for the autossh tunnel. The script will display the public key and pause. Before pressing ENTER, the hub owner must add the public key to the hub user's `authorized_keys`:
```bash
echo "<paste public key here>" >> ~/.ssh/authorized_keys
```
Once the key is added, press ENTER on the spoke to continue. The script will test the SSH connection and if successful, bring up the tunnel.
The private key never leaves the spoke — only the public key is shared.
### Onboarding a Spoke from the Hub ### Onboarding a Spoke from the Hub
Once the spoke tunnel is up, run on the hub: Once the spoke tunnel is up, run on the hub: