int128 / int128/gradle-ssh-plugin

Is it possible to make it work via TOR socks 5 proxy?

Open
#174 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Groovy
Stars
325
Forks
59
Avg merge
5h 29m
Merged PRs (30d)
6

Description

Putty works through TOR normally, but java do not
Error is "ProxySOCKS5: com.jcraft.jsch.JSchException: fail in SOCKS5 proxy" but TOR is open and putty works with it.

proxies {
    socks {
        host = 'localhost'
        port = 9150
        type = SOCKS
        socksVersion = 5
    }
}

remotes {
    testServer {
        host = 'main.exmaple.com'
        user = 'root'
        if (System.properties['os.name'].toLowerCase().contains('windows')) {
            identity = file( System.getProperty("user.home") + /\.ssh\id_rsa.ppk/)
        } else {
            identity = file(System.getProperty("user.home") + '/.ssh/id_rsa')
        }
        passphrase='mypassphraze'
        proxy = proxies.socks
    }

} 

Error is

  ProxySOCKS5: com.jcraft.jsch.JSchException: fail in SOCKS5 proxy

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Gradle SSH configuration with TOR running on localhost:9150 and compare the Java/JSch SOCKS5 failure with the working PuTTY connection. Trace the SOCKS5 proxy path from the proxy = proxies.socks configuration and verify the connection succeeds through TOR without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
networking, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.