Connection constructor

const Connection({
  1. Input<String>? agentSocketPath,
  2. Input<int>? dialErrorLimit,
  3. required Input<String> host,
  4. Input<String>? hostKey,
  5. Input<String>? password,
  6. Input<int>? perDialTimeout,
  7. Input<double>? port,
  8. Input<String>? privateKey,
  9. Input<String>? privateKeyPassword,
  10. Input<ProxyConnection>? proxy,
  11. Input<String>? user,
})

Creates a new Connection. 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 resource 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. perDialTimeout Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds. port The port to connect to. Defaults to 22. 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. proxy The connection settings for the bastion/proxy host. user The user that we should use for the connection.

Implementation

const Connection({
  this.agentSocketPath,
  this.dialErrorLimit,
  required this.host,
  this.hostKey,
  this.password,
  this.perDialTimeout,
  this.port,
  this.privateKey,
  this.privateKeyPassword,
  this.proxy,
  this.user,
});