gradle-ssh-plugin icon indicating copy to clipboard operation
gradle-ssh-plugin copied to clipboard

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

Open alex-shamshurin opened this issue 10 years ago • 2 comments

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

alex-shamshurin avatar Oct 07 '15 13:10 alex-shamshurin

Duplicated: https://github.com/int128/groovy-ssh/issues/74

int128 avatar Oct 09 '15 06:10 int128

So any updates?

alex-shamshurin avatar Mar 05 '16 00:03 alex-shamshurin