Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.
This repository was archived by the owner on May 25, 2025. It is now read-only.

Windows user : com.jcraft.jsch.AgentProxyException: SSH_AUTH_SOCK is not defined. #329

@deguich

Description

@deguich

Environment info

On windows 11

Steps to reproduce

Working gradle plugin version :

plugins {
    ...
    id "org.hidetake.ssh" version "2.10.1"
}

Broken version :

plugins {
    ...
    id "org.hidetake.ssh" version "2.11.2"
}

Error :

* What went wrong:
Execution failed for task ':deployApp'.
> com.jcraft.jsch.AgentProxyException: SSH_AUTH_SOCK is not defined.

This is the same task code used for twice version :

remotes {
  deployServer {
    host = deployServerHost
    knownHosts = allowAnyHosts
    user = deployServerUser
    agent = true
    identity = file(deployServerOpenSSHKey)
  }
}

task deployApp {
  group 'deploy'
  description 'Copy to server.'
  dependsOn copyAllDependencies
  doLast {
    ssh.run {
      session(remotes.deployServer) {
        put from: fileTree(dir: 'allLibs', include: ['*.jar']), into: '/tmp/test'
      }
    }
  }
}

Is there a solution to force using PageantConnector ?
mwiede/jsch#65 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions