Skip to content

Instantly share code, notes, and snippets.

View mukswilly's full-sized avatar

Willy Mukama mukswilly

View GitHub Profile
@mukswilly
mukswilly / sshd.go
Created February 26, 2022 09:24 — forked from jpillora/sshd.go
Go SSH server complete example - Read more here https://blog.gopheracademy.com/go-and-ssh/
// A small SSH daemon providing bash sessions
//
// Server:
// cd my/new/dir/
// #generate server keypair
// ssh-keygen -t rsa
// go get -v .
// go run sshd.go
//
// Client:
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
"net"
"net/http"
@mukswilly
mukswilly / main.go
Created July 21, 2021 19:24 — forked from afdalwahyu/main.go
golang dynamic port forward ssh socks5 tunnel
package main
import (
"context"
"fmt"
"net"
"os"
"os/signal"
"syscall"