Skip to content

Commit 455c2bc

Browse files
Merge pull request #2 from ilyaguy/master
Make debug level configurable.
2 parents 9aa3678 + 9961c47 commit 455c2bc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ RUN apk add --update openssh-client && rm -rf /var/cache/apk/*
55

66
CMD rm -rf /root/.ssh && mkdir /root/.ssh && cp -R /root/ssh/* /root/.ssh/ && chmod -R 600 /root/.ssh/* && \
77
ssh \
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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)