test(e2e): Add infra for ssh certificate injection test (#3532)
This commit is contained in:
1 parent
5e78fc72c5
commit
f88d3892cb
7 files changed
+151
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
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
|
||||
|
||||
apk update
|
||||
apk add xterm util-linux dbus ttf-freefont xauth firefox
|
||||
Reference in new issue
Block a user