private static SSHAgentConnector buildSshAgentConnector()

in deploy-runner-agent/src/main/java/jetbrains/buildServer/deployer/agent/ssh/SSHSessionProvider.java [230:238]


  private static SSHAgentConnector buildSshAgentConnector(String socketPath) throws AgentProxyException {
    final SSHAgentConnector connector;
    if ((socketPath == null || socketPath.equalsIgnoreCase(PIPE_OPENSSH_SSH_AGENT)) && TCSystemInfo.isWindows) {
      connector = new SSHAgentConnector(new RFAUSocketFactory(), Paths.get(socketPath));
    } else {
      connector = new SSHAgentConnector(new File(socketPath).toPath());
    }
    return connector;
  }