Files
Michael Li 4eec5ce0e1 test(bats): Fix flaky connect helper methods (#6535)
* test(bats): Fix flaky connect helper methods

* test(bats): Add more debug

* chore: Fix copywrite headers
2026-04-08 12:34:13 -04:00

16 lines
522 B
Plaintext

#!/usr/bin/with-contenv bash
# Copyright IBM Corp. 2020, 2026
# SPDX-License-Identifier: BUSL-1.1
chown 1000:1000 /etc/ssh/host-key
chmod 400 /etc/ssh/host-key
if ! grep -qE '^HostKey[[:space:]]+/etc/ssh/host-key$' /config/sshd/sshd_config 2>/dev/null; then
echo HostKey /etc/ssh/host-key >> /config/sshd/sshd_config
fi
if ! grep -qE '^HostCertificate[[:space:]]+/etc/ssh/host-key-cert.pub$' /config/sshd/sshd_config 2>/dev/null; then
echo HostCertificate /etc/ssh/host-key-cert.pub >> /config/sshd/sshd_config
fi