def get_conn(self):
self.log.debug('<STR_LIT>', self.ssh_conn_id)<EOL>client = paramiko.SSHClient()<EOL>if not self.allow_host_key_change:<EOL><INDENT>self.log.warning('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>client.load_system_host_keys()<EOL><DEDENT>if self.no_host_key_check:<EOL><INDENT>self.log.warning('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>client.set_missing_host_key_policy(paramiko.AutoAddPolicy())<EOL><DEDENT>if self.password and self.password.strip():<EOL><INDENT>client.connect(hostname=self.remote_host,<EOL>username=self.username,<EOL>password=self.password,<EOL>key_filename=self.key_file,<EOL>timeout=self.timeout,<EOL>compress=self.compress,<EOL>port=self.port,<EOL>sock=self.host_proxy)<EOL><DEDENT>else:<EOL><INDENT>client.connect(hostname=self.remote_host,<EOL>username=self.username,<EOL>key_filename=self.key_file,<EOL>timeout=self.timeout,<EOL>compress=self.compress,<EOL>port=self.port,<EOL>sock=self.host_proxy)<EOL><DEDENT>if self.keepalive_interval:<EOL><INDENT>client.get_transport().set_keepalive(self.keepalive_interval)<EOL><DEDENT>self.client = client<EOL>return client<EOL>
Opens a ssh connection to the remote host.

:rtype: paramiko.client.SSHClient