This repository has been archived on 2023-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
steam-container/entrypoint.sh

10 lines
302 B
Bash
Executable File

#!/bin/bash
if [ -r ~/.ssh/ssh_host_rsa_key ]; then
/usr/bin/sshd -D -e
else
ssh-keygen -q -N "" -t rsa -b 4096 -f ~/.ssh/ssh_host_rsa_key
ssh-keygen -q -N "" -t ecdsa -f ~/.ssh/ssh_host_ecdsa_key
ssh-keygen -q -N "" -t ed25519 -f ~/.ssh/ssh_host_ed25519_key
/usr/bin/sshd -D -e
fi