Skip to content

Commit 9bbcdb9

Browse files
committed
Allow TCP port forwarding in ssh config 2
1 parent 47574ad commit 9bbcdb9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

deploy/helm/ifrcgo-helm/templates/bastion.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ spec:
4444
containers:
4545
- name: ssh-bastion
4646
image: linuxserver/openssh-server:latest
47-
command: ["sh", "-c", "sed -i 's@AllowTcpForwarding no@AllowTcpForwarding yes@' /etc/ssh/sshd_config && /init"]
47+
command: ["sh", "-c"]
48+
args:
49+
- |
50+
sed -i 's@AllowTcpForwarding no@AllowTcpForwarding yes@' /etc/ssh/sshd_config
51+
touch /tmp/touched
52+
/init
4853
ports:
4954
- containerPort: 2222
5055
resources:

0 commit comments

Comments
 (0)