A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
1–10 of 83 posts
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#2It’s amazing what you can learn by reading the manual.
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#3When I see one of these with obvious AI tells at the top (sentences lacking a subject or verb), I ask myself:
Can’t I just open up a harness and prompt “Teach me how to do X?”
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#4The article mentions bastions, but no jumphosting?
ssh -J user1@bastion1,user2@bastion2 targetuser@targethost
Edit: Jumphosting was introduced in OpenSSH 7.3 2016-08-01.Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#5When I see one of these with obvious AI tells at the top (sentences lacking a subject or verb), I ask myself: Can’t I just open up a harness and prompt “Teach me how to do X?”
I personally do this, ask claude code to teach me about concepts I don't know about when it codes something, and only then I accept what it suggests to me
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#6There's a asymmetry here that "-R" works both for reverse static and dynamic (using SOCKS protocol) forwarding, but "-D" is required for dynamic forwarding which "-L" cannot do.
Why is that?
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#7When I see one of these with obvious AI tells at the top (sentences lacking a subject or verb), I ask myself: Can’t I just open up a harness and prompt “Teach me how to do X?”
I do this all the time, I have a skill/gem with instructions on how I want to receive info, how to format and so on. Really helps to go fast to get the point.
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#8As a sysadmin, one of your biggest ROI is learning the ins and outs of SSH.
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#9Learning how SSH port forwarding is great as a pseudo-vpn for everything from GUI-client database access to (in physical infra) access to web-admin tools for appliances.
The socks proxy support can also deal with bad web filtering and privacy issues on public wifi networks (though nowadays if you're ssh'ing to a cloud IP, you'll get lots of "bot" restrictions).
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#10It’s amazing what you can learn by reading the manual.
It is, because manuals are often not the best way to learn things. Most software manuals are reference manuals. SSH man page isn't too bad. I learned most of my SSH knowledge from it, but I'm not sure it's the best way to do it.