Skip to content

geodav-tech/docker-ssh-port-forward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

linuxserver/openssh-server is pretty cool because it's very configurable via environment vars. but, you can only overwrite the config via volume mounts.

azure container apps make mounting a volume more of a task than i want it to be, especially for something so simple.

this docker image is pretty much exactly what i want, except it looks abandoned.

the docker image in this repo pulls the latest linuxserver/openssh-server and applies a config to allow port forwarding (and nothing else!).

this is then deployed within a vnet in azure container apps to allow authenticated users to use SSH to connect to a database otherwise hidden behind the vnet. it's a similar solution to what's described in this stackoverflow answer, but since it's based on ACA it can scale to 0 when not in use.

build locally, push to docker hub

docker build -t docker-ssh-port-forward:latest -t geodavtech/docker-ssh-port-forward:latest --platform linux/amd64 .
docker login
docker push geodavtech/docker-ssh-port-forward:latest

this lives in the dockerhub here: https://hub.docker.com/repository/docker/geodavtech/docker-ssh-port-forward/general

About

A lightweight wrapper around the linuxserver/openssh-server image to allow it to forward ports and nothing else.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors