Fix test for remote logins. Support local config.