* test(bats): Fix flaky connect helper methods * test(bats): Add more debug * chore: Fix copywrite headers
16 lines
522 B
Plaintext
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
|
|
|