Ansible: Update

This commit is contained in:
Christer Waren
2026-09-14 14:24:46 +03:00
parent a5245f1c7f
commit 5b2cb89de5
20 changed files with 13 additions and 13 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
if [[ ! -f /etc/ssh/keys/ssh_host_rsa_key ]]
then
ssh-keygen -b 4096 -f /etc/ssh/keys/ssh_host_rsa_key -t rsa -N ""
fi
if [[ ! -f /etc/ssh/keys/ssh_host_ed25519_key ]]
then
ssh-keygen -b 4096 -f /etc/ssh/keys/ssh_host_ed25519_key -t ed25519 -N ""
fi
if [[ ! -f /etc/ssh/keys/authorized_keys ]]
then
touch /etc/ssh/keys/authorized_keys
fi
cat /etc/ssh/keys/authorized_keys > ~/.ssh/authorized_keys
/usr/sbin/sshd -D