Fix connect_remote_login() issue