#!/usr/bin/with-contenv bash # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: BUSL-1.1 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