Auto-install

This commit is contained in:
Anthony Rose 2025-03-23 21:45:42 +00:00
parent 6bb375e6f2
commit 5bfbfbc696

4
setup.sh Normal file → Executable file
View file

@ -5,8 +5,8 @@ eval $(grep '^ID=' /etc/os-release)
distro=${ID:-unknown}
case $distro in
debian)
apt update
apt install openssh-server
apt-get update
apt-get install -y openssh-server
install -d -m 0700 $HOME/.ssh
echo $ssh_key > $HOME/.ssh/authorized_keys
echo 'PermitRootLogin prohibit-password' > /etc/ssh/sshd_config.d/root.conf