Example #1
0
 def new_connection(self):
     """
         Overriding the new connection method
         to return the pool specific connection.
     """
     ssh = SSHConnection(
         self._host, self._port, self._user_name, self._password, self._key_file, self._timeout, self._known_hosts
     )
     ssh.open_connection()
     ssh.set_keep_alive(20)
     return ssh