GithubHelp home page GithubHelp logo

slex's Introduction

slex

Build Status

安装

编译源代码

go get https://github.com/hzxiao/slex.git
go install $GOPATH/github.com/hzxiao/slex/cmd/slex

下载最新二进制文件

用法

slexslex-srv.yaml放到公司具有公网的IP的机器上。

slexslec-cli.yaml放在本机器上。

通过ssh访问公司内部机器

  1. 修改slex-srv.yaml文件

    name: Server
    listen: :11089
    access:
    -
      name: Client
      token: 123456
  2. 运行放到公司具有公网的IP的机器上的slex

    slex -s -f slex-srv.yaml
  3. 修改slex-cli.yaml文件,公司公网IP为x.x.x.x, 内外IP为10.0.0.x

    name: Client
    channels:
      -
        name: Server
        enable: true
        token: 123456
        remote: x.x.x.x:11089
    forwards:
      -
        local: :8890
        route: Server->tcp://10.0.0.y:22
  4. 运行本机的slex

    slex -c -f slex-cli.yaml
  5. 使用ssh访问内部机器

    ssh -oPort=8890 root@localhost

slex's People

Contributors

hzxiao avatar

Stargazers

tangs avatar

Watchers

James Cloos avatar  avatar tangs avatar

Forkers

tsdrm

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.