Categorygithub.com/jorgemarey/stdproxy
modulepackage
0.1.0
Repository: https://github.com/jorgemarey/stdproxy.git
Documentation: pkg.go.dev

# README

Stdproxy

Stdproxy is a program that can be used to proxy stdin & stdout throught a configured socks proxy

Usage

./stdproxy -h
Usage of ./stdproxy:
  -basic-auth
        Use basic authentication (default is to read 'PROXY_CREDS' environment variable)
  -creds-file string
        Filepath of proxy credentials
  -log
        Enable logging
  -log-file string
        Save log execution to file (default "/tmp/stdproxy_1669706846.log")
  -timeout duration
        Proxy connection timeout (default 5s)
  -version
        Show program version

You can configure this on your ssh config in the ProxyCommand option

Host foo_bar.com
  ProxyCommand /usr/local/bin/stdproxy proxy.internal.domain:3128 %h %p

Host foo_baz.es
  ProxyCommand /usr/local/bin/stdproxy --creds-file /tmp/secret.creds proxy.internal.domain:3128 %h %p