Skip to content
Advertisement

Tag: socks

How to do dynamic port forwarding using Ruby

How do I do SSH dynamic port forwarding on Ruby? I tried to use gems such as “net/ssh/socks” and “net/ssh/gateway”, but it looks like they are already outdated because I can’t even require them. All I need to do is run this shell command and receive the PID of this process. I also tried to use Kernel#system and Kernel#spawn. For

Advertisement