It would be pretty neat to have all protocols have a way to return a net.Dialer for forwarding traffic.
On SSH it comes pretty much out-of-the-box, on localhost it can just return it from stdlib net. On openssh it's probably easy-ish, but on WinRM it needs some kind of powershell scriptlet that opens a System.Net.Sockets.TcpClient and streams stdin/stdout.
This could be used for bastion and for communicating to APIs.
It would be pretty neat to have all protocols have a way to return a
net.Dialerfor forwarding traffic.On SSH it comes pretty much out-of-the-box, on localhost it can just return it from stdlib
net. Onopensshit's probably easy-ish, but on WinRM it needs some kind of powershell scriptlet that opens aSystem.Net.Sockets.TcpClientand streams stdin/stdout.This could be used for bastion and for communicating to APIs.