Destination Constraint
data class DestinationConstraint(val fromHostname: String, val fromKeyspecs: List<AgentKeySpec>, val toUsername: String, val toHostname: String, val toHostspecs: List<AgentKeySpec>)(source)
One hop entry in a destination constraint for a key in the agent.
Describes a single permitted (from → to) hop in a forwarding chain. When fromHostname and fromKeyspecs are empty this is an origin-direct constraint (key may be used directly from the machine running the agent).
Parameters
from Hostname
Hostname of the previous hop, empty string for the origin machine
from Keyspecs
Host key specs of the previous hop, empty for the origin machine
to Username
Permitted destination username; empty string means any user is allowed
to Hostname
Destination hostname
to Hostspecs
Destination host key specs (must be non-empty)
Constructors
Link copied to clipboard
constructor(fromHostname: String, fromKeyspecs: List<AgentKeySpec>, toUsername: String, toHostname: String, toHostspecs: List<AgentKeySpec>)