44 lines
1.1 KiB
Markdown
44 lines
1.1 KiB
Markdown
|
|
---
|
||
|
|
description: SSH jump to remote hosts (hai, git, slate, rtx, jet)
|
||
|
|
argument-hint: <target> [command]
|
||
|
|
---
|
||
|
|
|
||
|
|
# Jump to Remote Host
|
||
|
|
|
||
|
|
Quick SSH access to Gandalf infrastructure nodes.
|
||
|
|
|
||
|
|
## Targets
|
||
|
|
|
||
|
|
| Target | Host | IP |
|
||
|
|
|--------|------|-----|
|
||
|
|
| `hai` | ubuntu@hofmanns.ai | 100.64.0.1 |
|
||
|
|
| `git` | ubuntu@git.hofmanns.tech | 100.64.0.6 |
|
||
|
|
| `slate` | root@192.168.10.1 | 100.64.0.7 |
|
||
|
|
| `rtx` | d@192.168.10.236 | local |
|
||
|
|
| `jet` | d@jet | offline |
|
||
|
|
| `cloud` | d@cloud | offline |
|
||
|
|
|
||
|
|
## Instructions
|
||
|
|
|
||
|
|
1. Parse the target from argument: $ARGUMENTS
|
||
|
|
|
||
|
|
2. Map target to SSH command:
|
||
|
|
- `hai`, `hofmanns` → `ssh ubuntu@100.64.0.1`
|
||
|
|
- `git`, `gitea` → `ssh ubuntu@100.64.0.6`
|
||
|
|
- `slate` → `ssh root@100.64.0.7`
|
||
|
|
- `rtx` → `ssh d@192.168.10.236`
|
||
|
|
- `jet`, `jetson` → `ssh d@jet`
|
||
|
|
- `cloud` → `ssh d@cloud`
|
||
|
|
|
||
|
|
3. If second argument provided, run as remote command:
|
||
|
|
```bash
|
||
|
|
ssh user@host 'command'
|
||
|
|
```
|
||
|
|
|
||
|
|
4. Otherwise open interactive session or show host info
|
||
|
|
|
||
|
|
5. Display result with status icons:
|
||
|
|
- 🟢 connected
|
||
|
|
- 🔴 failed
|
||
|
|
- ⚪ offline/unreachable
|