Hacker News
A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
tangotaylor
|next
[-]
So, if you use SSH tunneling to forward a port from localhost to a remote, then Docker unwittingly pushes to a remote. This is super useful "off the grid" with robotics/embedded applications where you don't want to bother with a registry and a good Internet connection.
Example, docker pussh: https://github.com/psviderski/unregistry
buredoranna
|next
|previous
[-]
"~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 its available
-o EnableEscapeCommandline=yes
or, in your ~/.ssh/config EnableEscapeCommandline yes
(edit: formatting)
wbadart
|next
|previous
[-]
Goes over similar content as TFA, in perhaps a little more depth. Indispensable sysadmin knowledge.
smw
|next
|previous
[-]
chasil
|next
|previous
[-]
ssh -J user1@bastion1,user2@bastion2 targetuser@targethost
Edit: Jumphosting was introduced in OpenSSH 7.3 2016-08-01.
m348e912
|root
|parent
|next
[-]
Are you using SSH key auth or password authenticating three times when you do this?
dspillett
|root
|parent
|previous
[-]
Support was added to OpenSSH about a decade ago? Even on a low moving Linux distro like Debian/LTS everyone should have support by now.
hylaride
|next
|previous
[-]
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).
bheadmaster
|next
|previous
[-]
It's amazing how lightweight this method actually is. I have managed to connect hundreds of devices using a single EC2 nano instance.
segphault
|next
|previous
[-]
teddyh
|next
|previous
[-]
felooboolooomba
|root
|parent
[-]
matltc
|root
|parent
|next
[-]
Some pages have a nice up-front synopsis of flags, others put them in a wall of text. Browsing the former can supplant Google, /\b-x while paging is helpful for the latter.
felooboolooomba
|next
|previous
[-]
riobard
|next
|previous
[-]
Why is that?
trollbridge
|next
|previous
[-]
Can’t I just open up a harness and prompt “Teach me how to do X?”