int128 / groovy-ssh

SSH automation tool based on Groovy DSL
https://gradle-ssh-plugin.github.io
Apache License 2.0
115 stars 25 forks source link

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

Open alex-shamshurin opened 8 years ago

alex-shamshurin commented 8 years ago

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
    }

} 
int128 commented 8 years ago

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

alex-shamshurin commented 8 years ago

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

alex-shamshurin commented 8 years ago

No ideas?

alex-shamshurin commented 8 years ago

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

alex-shamshurin commented 8 years ago

Any updates?