groovy-ssh icon indicating copy to clipboard operation
groovy-ssh copied to clipboard

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

Open alex-shamshurin opened this issue 10 years ago • 5 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 = 1080
        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
    }

} 

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

Anyone knows groovy-ssh or gradle-ssh-plugin with TOR socks proxy? I have no environment for testing it.

int128 avatar Oct 09 '15 07:10 int128

But it must be a standart SOCKS5 Proxy, putty works with it.

alex-shamshurin avatar Oct 09 '15 08:10 alex-shamshurin

No ideas?

alex-shamshurin avatar Feb 01 '16 12:02 alex-shamshurin

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

alex-shamshurin avatar Feb 01 '16 13:02 alex-shamshurin

Any updates?

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