def METHOD_NAME(self, username, password, host, command=None):
    """ SSH login to host """
    pxssh = pexpect_ssh(host, username, password, debug=False)
    try:
        pxssh.login()
    except SSHLoginException:
        return False
    except pexpect.exceptions.EOF:
        return False
    else:
        if command:
            (output, ret) = pxssh.command('id')
            print(output)
            print("Return status: ", ret)
    pxssh.logout()
    del pxssh
    return True