test(e2e): Update module to account for docker image changes (#5295)
There were some directory changes made to the openssh server docker container. These changes were made to account for that update.
This commit is contained in:
1 parent
088564c385
commit
ae0ca0c5aa
3 files changed
+20
-9
No files matched your search
@@ -2,13 +2,13 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
cp /ca/ca-key.pub /etc/ssh/ca-key.pub
|
||||
chown 1000:1000 /etc/ssh/ca-key.pub
|
||||
chmod 644 /etc/ssh/ca-key.pub
|
||||
echo TrustedUserCAKeys /etc/ssh/ca-key.pub >> /etc/ssh/sshd_config
|
||||
echo PermitTTY yes >> /etc/ssh/sshd_config
|
||||
sed -i 's/X11Forwarding no/X11Forwarding yes/' /etc/ssh/sshd_config
|
||||
echo "X11UseLocalhost no" >> /etc/ssh/sshd_config
|
||||
cp /ca/ca-key.pub /config/sshd/ca-key.pub
|
||||
chown 1000:1000 /config/sshd/ca-key.pub
|
||||
chmod 644 /config/sshd/ca-key.pub
|
||||
echo TrustedUserCAKeys /config/sshd/ca-key.pub >> /config/sshd/sshd_config
|
||||
echo PermitTTY yes >> /config/sshd/sshd_config
|
||||
sed -i 's/X11Forwarding no/X11Forwarding yes/' /config/sshd/sshd_config
|
||||
echo "X11UseLocalhost no" >> /config/sshd/sshd_config
|
||||
|
||||
apk update
|
||||
apk add xterm util-linux dbus ttf-freefont xauth firefox
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
sed -i 's/AllowTcpForwarding no/AllowTcpForwarding yes/' /config/sshd/sshd_config
|
||||
Reference in new issue
Block a user