def open(self):
self._connection = paramiko.SSHClient()<EOL>self._connection.set_missing_host_key_policy(paramiko.AutoAddPolicy())<EOL>try:<EOL><INDENT>self._connection.connect(hostname=self._hostname,<EOL>username=self._username,<EOL>password=self._password,<EOL>timeout=self._timeout,<EOL>port=self._port)<EOL>self._connection.get_transport().set_keepalive(self._keepalive)<EOL>self.connected = True<EOL>self.config = PluribusConfig(self)<EOL><DEDENT>except paramiko.ssh_exception.AuthenticationException:<EOL><INDENT>raise pyPluribus.exceptions.ConnectionError("<STR_LIT>".format(hostname=self._hostname))<EOL><DEDENT>except socket_error as sockerr:<EOL><INDENT>raise pyPluribus.exceptions.ConnectionError("<STR_LIT>".format(skterr=sockerr.message))<EOL><DEDENT>except socket_gaierror as sockgai:<EOL><INDENT>raise pyPluribus.exceptions.ConnectionError("<STR_LIT>".format(gaierr=sockgai.message))<EOL><DEDENT>
Opens a SSH connection with a Pluribus machine.