You can use this docker container to create a SSH tunnel to a remote machine and have it "visible" inside your docker environment.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
228 B

FROM alpine:latest
ARG SSH_USER
ARG SSH_HOST
ARG SSH_PORT
ARG SSH_IDENTITY_PATH
ARG REMOTE_HOST
ARG REMOTE_PORT
ARG LOCAL_PORT
RUN \
apk -U add openssh-client
COPY entrypoint.sh /
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]