logoalt Hacker News

pramtoday at 12:08 AM2 repliesview on HN

Yep the menu is handy for ssh tunneling. Maybe not a lot of people doing that these days though with stuff like dev tunnels and Tailscale.


Replies

MayeulCtoday at 12:48 AM

I typically just create a "new" connection in a separate tab when I want to add tunneling.

I put new in quotes because I use another little-known feature, "ControlMaster". Multiplexes multiple connections into one, it makes making " new" sessions instant (can also be configured to persist a bit after disconnecting). Also useful for tab-completing remote paths. It does not prompt for authentication again, though. And it's a bit annoying when the connection hands (can be solved with ssh -o close, IIRC).

show 3 replies
qudattoday at 2:42 PM

I use it all the time with https://tuns.sh that let's you expose localhost to the public.