code: def connect_with_password(self, ssh, username, password, address, port, sock,
                                timeout=20):
          
          ssh.connect(username=username,
                      password=password,
                      hostname=address,
                      port=port,
                      sock=sock,
                      timeout=timeout)
docs: Create an ssh session to a remote host with a username and password
  
          :type username: str
          :param username: username used for ssh authentication
          :type password: str
          :param password: password used for ssh authentication
          :type address: str
          :param address: remote server address
          :type port: int
          :param port: remote server port