> +         !loginCredentials.getPrivateKey().isEmpty() &&
> +         !loginCredentials.getPrivateKey().contains("Proc-Type: 
> 4,ENCRYPTED");
> +   }
> +
> +   static AgentProxy getSSHAgentProxy() {
> +      ConnectorFactory cf = ConnectorFactory.getDefault();
> +      try {
> +         Connector con = cf.createConnector();
> +         if (con != null && con.isAvailable()) {
> +            return new AgentProxy(con);
> +          }
> +      } catch (AgentProxyException e) {
> +      }
> +      return null;
> +   }
> +

Same comments here as for the jsch version

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

Reply via email to