Earlier quoted context omitted.
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.
Could you share it? I'd be interested to get idea to make my own
A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
31–40 of 83 posts
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#32I 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
#33So, 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
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#34If you have many different remote devices behind NATs or firewalls, a cool trick to access them all via EC2 server (or such) is to setup Remote Forwarding via UNIX socket on the server side, to devices' port 22. Preferably, UNIX socket filenames should start with a common prefix, so an SSH config can be written that will use ssh+socat in a ProxyCommand to establish the connection. It's amazing how lightweight this me…
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#35My favorite use of this is peer-to-peer transfer of Docker images. The Docker CLI only allows you to use registries authenticated with HTTPS but there's an exception where it allows HTTP transfers over localhost. 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…
i set it up a few years ago for my homelab
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#36If you have many different remote devices behind NATs or firewalls, a cool trick to access them all via EC2 server (or such) is to setup Remote Forwarding via UNIX socket on the server side, to devices' port 22. Preferably, UNIX socket filenames should start with a common prefix, so an SSH config can be written that will use ssh+socat in a ProxyCommand to establish the connection. It's amazing how lightweight this me…
Do you have more info on this method? How is the remote forwarding actually done?
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#37My favorite use of this is peer-to-peer transfer of Docker images. The Docker CLI only allows you to use registries authenticated with HTTPS but there's an exception where it allows HTTP transfers over localhost. 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…
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#38The 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. https://www.openssh.org/releasenotes.html
Are you using SSH key auth or password authenticating three times when you do this?
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#39My favorite use of this is peer-to-peer transfer of Docker images. The Docker CLI only allows you to use registries authenticated with HTTPS but there's an exception where it allows HTTP transfers over localhost. 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…
This is really useful as you don't have to add an entry under insecure-registries for local registries that don't have valid certificates.
Re: A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
#40My favorite use of this is peer-to-peer transfer of Docker images. The Docker CLI only allows you to use registries authenticated with HTTPS but there's an exception where it allows HTTP transfers over localhost. 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…
```/etc/docker/daemon.json
{
"insecure-registries": ["10.100.0.0/24", "registry.yourmom.example.com:5000"]
}
```[1] https://docs.docker.com/reference/cli/dockerd/#insecure-regi...