Commit 5d0b467 1 parent ccd55e1 commit 5d0b467 Copy full SHA for 5d0b467
File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
11
11
&& sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf \
12
12
&& mkdir -p '/etc/nginx/dhparam'
13
13
14
+ RUN sed -i "s/AllowTcpForwarding .*/AllowTcpForwarding yes/g" /etc/ssh/sshd_config \
15
+ && echo 'ClientAliveInterval 15' >> /etc/ssh/sshd_config
16
+
14
17
WORKDIR /app
15
18
16
19
COPY ./* /app/
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
5
5
ssh-keygen -A
6
6
fi
7
7
8
- sed " s/AllowTcpForwarding .*/AllowTcpForwarding yes/g" /etc/ssh/sshd_config > /etc/ssh/sshd_config
9
-
10
8
if [ ! -f /root/.ssh/authorized_keys ]; then
11
9
echo $INITAL_AUTHORIZED_KEYS > /root/.ssh/authorized_keys
12
10
fi
You can’t perform that action at this time.
0 commit comments