-
Notifications
You must be signed in to change notification settings - Fork 204
Closed
Labels
Description
Currently, if you set up an SSH fleet, dstack requires that the dstack server can access each host via the provided SSH credentials. In many cases, compute hosts aren't accessible directly. Instead, they are accessible through so called "head" nodes.
Setup example:
- A
head-hostthat can access SSH intocompute-host-1andcompute-host-2. - On a server node, run
dstack server - Create a fleet config:
type: fleet
name: private-fleet
placement: cluster
ssh_config:
hosts:
- compute-host-1
- compute-host-2
proxy_jump: # also can be defined per host; (or it can be a hostname instead of an object)
hostname: host-node
identity_file: ~/.ssh/private_key
- The
dstack applyanddstack attachwill try to reuse the jump host SSH config for the specified host (login-node) automatically.
It means the user must have head-node SSH config defined.
am001122