>        }
>        sessionConnection = 
> SessionConnection.builder().hostAndPort(HostAndPort.fromParts(host, 
> socket.getPort())).loginCredentials(
>                 loginCredentials).proxy(checkNotNull(proxyConfig, 
> "proxyConfig")).connectTimeout(timeout).sessionTimeout(timeout).build();
>     }
>  
> +   static boolean hasValidPrivateKey(LoginCredentials loginCredentials) {
> +      return loginCredentials.getPrivateKey() != null &&
> +         !loginCredentials.getPrivateKey().isEmpty() &&

An empty private key is not going to lead a successful login, so why not try 
with the agent?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/312/files#r10861310

Reply via email to