initial commit
This commit is contained in:
77
07_connect_remote_machine.md
Normal file
77
07_connect_remote_machine.md
Normal file
@@ -0,0 +1,77 @@
|
||||
# Connect a New Remote Machine to MeshCentral
|
||||
## Commands Only — Run These on the Remote Machine
|
||||
|
||||
---
|
||||
|
||||
## Step 1 — Install Tailscale
|
||||
|
||||
```bash
|
||||
curl -fsSL https://tailscale.com/install.sh | sh
|
||||
sudo tailscale up
|
||||
```
|
||||
|
||||
> ⚠️ A URL will appear. Open it in **any browser** (your laptop is fine).
|
||||
> Log in with **knmkaushik@gmail.com** (same account as all other machines).
|
||||
> **DO NOT press Ctrl+C** — wait until the terminal prints `Success.`
|
||||
|
||||
Verify:
|
||||
```bash
|
||||
tailscale status
|
||||
# Must show: pop-os ... Connected
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 2 — Install MeshCentral Agent
|
||||
|
||||
```bash
|
||||
cd /tmp && \
|
||||
wget "https://100.66.205.2:4430/meshagents?script=1" --no-check-certificate -O ./meshinstall.sh && \
|
||||
chmod 755 ./meshinstall.sh && \
|
||||
sudo ./meshinstall.sh https://100.66.205.2:4430 '7TS2JNCPPk4H6zUjPNYIy5SOy6kyUQRsmkIoyd6jHlzweRwcEPRxZ8oZ2vLV6nZi'
|
||||
```
|
||||
|
||||
Expected output:
|
||||
```
|
||||
...Installing service [DONE]
|
||||
-> Starting service... [OK]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 3 — Verify Agent is Running
|
||||
|
||||
```bash
|
||||
sudo systemctl status meshagent
|
||||
# Must show: active (running)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Done
|
||||
|
||||
The machine will appear in the MeshCentral dashboard at `https://localhost:4430` on your laptop within 10 seconds.
|
||||
|
||||
---
|
||||
|
||||
## If Something Goes Wrong
|
||||
|
||||
| Problem | Fix |
|
||||
|---|---|
|
||||
| `tailscale status` shows `Logged out` | Run `sudo tailscale up` again, open the new URL in browser |
|
||||
| Agent install hangs at `Connecting to 100.66.205.2` | Tailscale not connected — fix Step 1 first |
|
||||
| Machine not appearing in dashboard | Run `sudo systemctl restart meshagent` |
|
||||
| Agent install succeeds but no green dot | Wait 30 seconds then hard refresh browser |
|
||||
|
||||
---
|
||||
|
||||
## Quick Reference Info
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| MeshCentral Server IP | `100.66.205.2` |
|
||||
| MeshCentral Port | `4430` |
|
||||
| Dashboard URL (from laptop) | `https://localhost:4430` |
|
||||
| Dashboard URL (from Tailscale machine) | `https://100.66.205.2:4430` |
|
||||
| Tailscale Account | `knmkaushik@gmail.com` |
|
||||
| Device Group Key | `7TS2JNCPPk4H6zUjPNYIy5SOy6kyUQRsmkIoyd6jHlzweRwcEPRxZ8oZ2vLV6nZi` |
|
||||
Reference in New Issue
Block a user