ssh_session - SSH Remote Session

SSH remote session.

class SSHSession

Bases: RemoteSession

A persistent SSH connection to a remote Node.

The connection is implemented with the Fabric Python library.

session

The underlying Fabric SSH connection.

Type:

fabric.Connection

Raises:

SSHConnectionError – The connection cannot be established.

is_alive() bool

Overrides is_alive().

copy_from(source_file: str | pathlib.PurePath, destination_dir: str | pathlib.Path) None

Overrides copy_from().

copy_to(source_file: str | pathlib.Path, destination_dir: str | pathlib.PurePath) None

Overrides copy_to().

close() None

Overrides close().