def _create_ssh(self):
        try:
            self._client = paramiko.SSHClient()
            self._client.set_missing_host_key_policy(
                paramiko.AutoAddPolicy(),
            )
            self._client.connect(
                self._get_ip(), username='root',
                password=settings.PYRAX_PASSWORD,
            )
        except paramiko.AuthenticationException as e:
            logger.info('SSH connection wait:{}'.format(e))
            self._create_ssh()
        logger.info('SSH connection ready:{}'.format(self._name))
Create ssh connection
dataset/ETHPy150Open nvbn/coviolations_web/nodes/utils.py/NodeConnection._create_ssh