HERDR HANDBOOK · VI
Remote / VPS qua SSH
Chạy Herdr server trên VPS nhưng điều khiển từ máy Ubuntu local, hoặc dùng Herdr hoàn toàn trong SSH session.
1. Chuẩn bị SSH
Trước khi dùng Herdr remote, SSH bình thường phải hoạt động.
ssh workbox
# ~/.ssh/config
Host workbox
HostName server.example.com
User ubuntu
Port 22
2. Ba cách làm remote
| Cách | Command | Phù hợp |
|---|---|---|
| SSH trước rồi chạy Herdr |
ssh workbox → herdr
|
Giống tmux trên server |
| Remote attach | herdr --remote workbox |
Local UI, remote panes |
| Saved machine | herdr machine add workbox |
Một UI quản lý Local + nhiều server |
3. Remote attach
herdr --remote workbox
herdr --remote ssh://you@server:2222
Remote server sở hữu process; local Herdr vẽ UI. Đây là lựa chọn tốt khi bạn muốn trải nghiệm remote giống local.
4. Remote named session
herdr --remote workbox --session agents
5. Lab VPS
- Kiểm tra
ssh workbox. - Thoát SSH.
- Chạy
herdr --remote workbox. -
Trên remote workspace, start một process
watch date. - Detach local client rồi attach lại và xác nhận process remote vẫn chạy.