11 lines
219 B
Bash
11 lines
219 B
Bash
|
|
# Generate new SSH host keys if they dont exist
|
|
if [[ ! -f /etc/ssh/ssh_host_rsa_key ]]; then
|
|
echo "**** Generating SSH keys ****";
|
|
/usr/bin/ssh-keygen -A
|
|
fi
|
|
mkdir -p /run/sshd
|
|
chmod 744 /run/sshd
|
|
|
|
echo "DONE"
|