by j16sdiz · 2y ago · 0 comments
https://pkg.go.dev/github.com/HimbeerserverDE/httpssh
> httpssh listens for HTTP(S) and SSH connections on the same port and forwards the traffic to the corresponding service.
frontend https
bind *:443
mode tcp
tcp-request inspect-delay 2s
use_backend https_loopback if { req.ssl_ver gt 0 }
default_backend ssh
Another option is to use TLS SNI (Server Name Indication) like a virtualhost-style ssh server (https://www.haproxy.com/blog/route-ssh-connections-with-hapr...). You can use the 'openssl' command in your ProxyCommand which is pretty readily available.