Host Config

Host specific configuration.

class pssh.config.HostConfig(user=None, port=None, password=None, private_key=None, allow_agent=None, num_retries=None, retry_delay=None, timeout=None, identity_auth=None, proxy_host=None, keepalive_seconds=None)

Host configuration for ParallelSSHClient.

Used to hold individual configuration for each host in ParallelSSHClient host list.

Currently only user, port, password and private_key attributes can be configured for backwards compatibility with dictionary host_config implementation in the 1.x.x series.

Parameters
  • user (str) – Username to login as.

  • port (int) – Port number.

  • allow_agent (bool) – Enable/disable SSH agent authentication.

  • num_retries (int) – Number of retry attempts before giving up on connection and SSH operations.

  • retry_delay (int) – Delay in seconds between retry attempts.

  • timeout (int) – Timeout value for connection and SSH sessions in seconds.

  • identity_auth (bool) – Enable/disable identity file authentication under user’s home directory (~/.ssh).

  • proxy_host (str) – Proxy SSH host to use for connecting to target SSH host. client -> proxy_host -> SSH host

  • keepalive_seconds (int) – Seconds between keepalive packets being sent. 0 to disable.

Password

Password to login with.

Private key

Private key file to use for authentication.

allow_agent
identity_auth
keepalive_seconds
num_retries
password
port
private_key
proxy_host
retry_delay
timeout
user