Git Product home page Git Product logo

sshtunnel's Introduction

when your relay administrator forbid ssh tunneling.

THIS MAY HELP

function

1.forward your tcp streams without listening any ports on relay.
2.binding remote port on localhost.

how does it works

Transfer your tcp I/O streams into terminal's std I/0 stream with HEX encoding.

** why not transfer with z-modem protocol? **
My company's operation administrator forbids this protocol.

usage

relay

  1. download tun file from repo,put it at ${HOME} of relay
  2. chmod +x tun

local

  1. install JDK1.8
  2. download from repo: tool-sshTunnel-0.1beta.jar, tunnels.properties, jsch-0.1.53.jar,sshTunnel.bat
  3. modify tunnels.properties
  4. run sshTunnel.bat

host=127.0.0.1           #ssh address of relay
port=22                  #ssh port
username=${smmoth_criminal}        # username
password=${annie_are_you_ok}       # password
commandline=/path/to/tun 

30193=10.1.18.193 32200         #localPort=remoteAddress remotePort
30198=10.1.0.198 32200

hint

kg 只在跳板机上面禁止了tunnel.
通过这个跳到业务机再使用原生ssh隧道可以直连接数据库做爱做的事. 当然所有行为都是加密的. 然后跑路

sshtunnel's People

Contributors

fatlao avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.