Goes over similar content as TFA, in perhaps a little more depth. Indispensable sysadmin knowledge.
A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
21–30 of 83 posts
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#22It's amazing how lightweight this method actually is. I have managed to connect hundreds of devices using a single EC2 nano instance.
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#23It’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.
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#24There'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
#25Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#26I never pass up an opportunity to recommend the Cyber Plumber's Handbook: https://github.com/opsdisk/the_cyber_plumbers_handbook Goes over similar content as TFA, in perhaps a little more depth. Indispensable sysadmin knowledge.
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#27Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#28I never pass up an opportunity to recommend the Cyber Plumber's Handbook: https://github.com/opsdisk/the_cyber_plumbers_handbook Goes over similar content as TFA, in perhaps a little more depth. Indispensable sysadmin knowledge.
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#29I'll mention it here, because I learned about it here. "~C" will drop you into the SSH command line, allowing you to, among other things, effect port forwarding -L8080:localhost:443 Learning that "~C" exists, and what you can do with it, has supercharged my use of SSH tunnels, which were already awesome on their own. But for some reason this has been disabled by default in more recent ssh configurations... to ensure…
Important to note that `~` SSH commands work only right after you press Enter - it doesn’t trigger everywhere you press `~`. Also EnableEscapeCommandline fortunately only affects `~C` - the all-important `~.` to kill a hung SSH session still works with it disabled.