ProxyConnection constructor
Creates a new ProxyConnection.
agentSocketPath SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
dialErrorLimit Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
host The address of the bastion host to connect to.
hostKey The expected host key to verify the server's identity. If not provided, the host key will be ignored.
password The password we should use for the connection to the bastion host.
perDialTimeout Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
port The port of the bastion host to connect to.
privateKey The contents of an SSH key to use for the connection. This takes preference over the password if provided.
privateKeyPassword The password to use in case the private key is encrypted.
user The user that we should use for the connection to the bastion host.
Implementation
const ProxyConnection({
this.agentSocketPath,
this.dialErrorLimit,
required this.host,
this.hostKey,
this.password,
this.perDialTimeout,
this.port,
this.privateKey,
this.privateKeyPassword,
this.user,
});