Skip to content
Secure TCP connection via SSH for Go.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
README.md
client.go
secure_connection.go
server.go
server_test.go

README.md

seccon

Secure TCP connections via SSH for Go. Includes client and server implementation. Feels like plain net.Dial and net.Listen.

Installation

go get github.com/yanzay/seccon

Examples

Client

// ...
client := seccon.NewClient("username")
conn, err := client.Dial("example.com:2022")
// ...
conn.Write(b)

Server

// ...
listener, err := seccon.Listen(":2022", "")
// ...
conn, err := listener.Accept()
// ...
conn.Read(b)

See full examples in examples dir.

You can’t perform that action at this time.