3 ms·
This motivated me to play around with Net::SSH port forwarding this afternoon and evening. What I ended up with was a tiny patch that allows you to forward a lo
by imbriaco 15y ago
This motivated me to play around with Net::SSH port forwarding this afternoon and evening. What I ended up with was a tiny patch that allows you to forward a local UNIX domain socket to a remote TCP port over an SSH connection. It's a fun hack if nothing else:
https://gist.github.com/1144486 https://gist.github.com/1144486
https://github.com/imbriaco/net-ssh/commit/aa453511f546cd524d2495f55429b2d168efd7d1 https://github.com/imbriaco/net-ssh/commit/aa453511f546cd524...
- imbriaco 15y agoClosing the loop and replying to myself, I got carried away and wound up with a full Sinatra demo app that does this: https://github.com/imbriaco/heroku-redis-sshtunnel https://github.com/imbriaco/heroku-redis-sshtunnel