linkage

command module
v0.0.0-...-6d4f3c0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 4 Imported by: 0

README

linkage

Linkage is an SSH TCP Port Forwarding app to open multiple tunnels simultaneously written totally in GoLang.

Run using Config file

linkage -c example.yml

The config file example:

servers:
  - host: remote.server1.tld
    port: 22
    user: dev
    key_file: ~/.ssh/id_rsa.pub
    tunnels:
      - remote_port: 80
        remote_host: web_app
        local_port: 80 
      - remote_port: 443
        remote_host: web_app
        local_port: 443  
          
  - host: remote.server2.tld
    port: 22
    user: dev
    password: <password>
    tunnels:
      - remote_port: 9200
        remote_host: elastic
        local_port: 9200

Testing

go test ./...
go test -bench ./...
go test -coverprofile .coverate.out ./...
go tool cover -html=.coverate.out
godoc -http :8080

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
utils
config
Package config reads configuration data from the file which is provided in the "config" argument when the app is started and returns the Configuration type.
Package config reads configuration data from the file which is provided in the "config" argument when the app is started and returns the Configuration type.
printer
Package printer converts a []tunnel.Tunnel slice into a live list of tunnels with basic statistics.
Package printer converts a []tunnel.Tunnel slice into a live list of tunnels with basic statistics.
runtime
Package runtime is responsible for handling the whole application context.
Package runtime is responsible for handling the whole application context.
tunnel
Package tunnel opens a tunnel using provided server and tunnel configuration and keeps it until something will break it or close it.
Package tunnel opens a tunnel using provided server and tunnel configuration and keeps it until something will break it or close it.

Jump to

Keyboard shortcuts

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