3 ms·
Can't you use Match exec?
by capitainenemo 1y ago
Can't you use Match exec?
- tetris11 1y agoThis is a fantastic answer. I'd never heard of the Match exec commands in SSH config. I'll have to play around with this - thank you!
- ranger_danger 1y agoYea I would consider this very poorly documented, although I'm sure the authors would be quick to point out how dumb I am for even suggesting that. I bet most ssh users don't even know about the -w option. It even supports layer2 tunnels! And somehow https://wrongthink.link/posts/all-you-need-is-ssh/ https://wrongthink.link/posts/all-you-need-is-ssh/ does not even mention this usecase.
- tetris11 1y agoI have to admit I'm not certain what use case the -w option serves. It seems like a fancy port forwarding?
- ranger_danger 1y agoCheck the section in the manpage for ssh(1) named: SSH-BASED VIRTUAL PRIVATE NETWORKS
- dylan604 1y agoIt's funny how after using an app like ssh/awk/sed/grep for so many years and achieving so much functionality with it with some pretty "advanced" features is still but a scratch on the surface of actual abilities or what other people do with them. I'd wear it like a badge of honor if I ever created something so useful and universally used. To the point, I'd probably even use my initials in the name of the app too!
- capitainenemo 1y agonoticed these replies in my history... personally I think sshtunnel is a lot more convenient most of the time.