Skip to content

dtapps/go-ssh-tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://www.dtapp.net/

📦 Golang SSH 隧道

GitHub Org's stars

godoc oproxy.cn goreportcard.com deps.dev

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

下载使用

  • 把.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")
}