File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ RUN apk add --update openssh-client && rm -rf /var/cache/apk/*
55
66CMD rm -rf /root/.ssh && mkdir /root/.ssh && cp -R /root/ssh/* /root/.ssh/ && chmod -R 600 /root/.ssh/* && \
77ssh \
8- -vv \
8+ $SSH_DEBUG \
99-o StrictHostKeyChecking=no \
1010-N $TUNNEL_HOST \
1111-L *:$LOCAL_PORT:$REMOTE_HOST:$REMOTE_PORT \
1212&& while true; do sleep 30; done;
13- EXPOSE 1-65535
13+ EXPOSE 1-65535
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ This Docker creates a simple SSH tunnel over a server. It is very useful when yo
3434 volumes:
3535 - $HOME/.ssh:/root/ssh:ro
3636 environment:
37+ SSH_DEBUG: "-v"
3738 TUNNEL_HOST: mysql-tunnel
3839 REMOTE_HOST: tunneled-sql.corporate.internal.tld
3940 LOCAL_PORT: 3306
You can’t perform that action at this time.
0 commit comments