go-ssh-tunnel

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 8 Imported by: 0

README

www.dtapp.net

Golang SSH Tunnel

📦 Golang SSH 隧道

通过Go实现从本地连接到远程服务器的数据库

GitHub Org's stars

golang version godoc

goproxy

go report card

watchers stars forks issues branches releases tags license contributors GitHub go.mod Go version (subdirectory of monorepo) GitHub release (latest SemVer) GitHub tag (latest SemVer) GitHub pull requests GitHub issues GitHub Sponsors GitHub code size in bytes GitHub language count GitHub search hit counter GitHub top language

Scrutinizer build (GitHub/Bitbucket) Scrutinizer coverage (GitHub/BitBucket) Scrutinizer code quality (GitHub/Bitbucket)

Travis (.com) branch

Codecov branch

gitlab (.com)

下载使用

  • 把.example.config.yaml文件重命名为config.yaml
  • 修改对应的配置,运行即可

扩展包使用

go get -u github.com/dtapps/dtapps/go-ssh-tunnel
package main

import (
	"github.com/dtapps/go-ssh-tunnel/dssh"
)

func main() {
	dssh.Tunnel("root", "", ":22", ":3306", "localhost:13306")
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL