forked from finn/tinyboard
onboard-spoke.sh: add key selection prompt for tunnel auth, use explicit -i flag for all SSH calls, clarify hub key installation header
This commit is contained in:
@@ -37,12 +37,18 @@ cd tinyboard
|
||||
|
||||
### 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`:
|
||||
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`. Run this on the hub as the hub user (e.g. `armbian`):
|
||||
|
||||
```bash
|
||||
echo "<paste public key here>" >> ~/.ssh/authorized_keys
|
||||
```
|
||||
|
||||
Or as root:
|
||||
|
||||
```bash
|
||||
echo "<paste public key here>" >> /home/armbian/.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.
|
||||
|
||||
Reference in New Issue
Block a user