get_ssh_connection
get_ssh_connection#
- atomate2.utils.file_client.get_ssh_connection(username: str | None, hostname: str, key_filename: str | Path, config_filename: Optional[Union[str, Path]] = None) paramiko.client.SSHClient [source]#
Connect to a remote host via paramiko.
If the host key is not present it will be added automatically.
- Parameters
- Returns
SSHClient
An ssh connection to the host.