bartender.shared.ssh#
Classes#
Configuration for ssh connection. |
Functions#
|
Connect to a host using SSH. |
Module Contents#
- class bartender.shared.ssh.SshConnectConfig#
Bases:
pydantic.BaseModelConfiguration for ssh connection.
- usename#
Username to connect with. When absent will use username of logged in user.
- async bartender.shared.ssh.ssh_connect(config: SshConnectConfig) → asyncssh.SSHClientConnection#
Connect to a host using SSH.
- Parameters:
config (SshConnectConfig) – Configuration.
- Returns:
The connection.
- Return type: