We run our docker containers without binding any ports to public IPs. But we need to access them sometimes, e.g., run SQL scripts, access PhpMyAdmin / Mongo Express.
Creating an SSL tunnel is easy, but it's even easier with the portal
!
portal
helps to establish SSH tunnels by providing additional options:
portal ls <host>
portal bind <host> <container[:port]> [<local port>]
portal connect <host> <container[:port]> [<local port>]
# Download
curl -L -o portal https://raw.githubusercontent.com/benweidig/portal/master/portal.sh
# Make executalbe
chmod +x portal
MIT. See LICENSE.