def METHOD_NAME(ssh_session):
    login_channel = ssh_session.invoke_shell()
    login_message = ""
    start_time = time.time()
    while (time.time() - start_time) <= LOGIN_MESSAGE_TIMEOUT:
        if login_channel.recv_ready():
            data = login_channel.recv(LOGIN_MESSAGE_BUFFER_SIZE)
            if len(data) == 0:
                # when receive zero length data, channel closed
                break
            login_message += data.decode("utf-8")
        time.sleep(1)
    return login_message